2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-01 07:05:13 +00:00

Show a new "Battery and Animations" settings item.

This commit is contained in:
John Preston
2023-02-25 16:17:48 +04:00
parent 588d5ad695
commit 388541a3fb
24 changed files with 220 additions and 116 deletions

View File

@@ -60,11 +60,12 @@ base::options::toggle OptionMonoSettingsIcons({
const char kOptionMonoSettingsIcons[] = "mono-settings-icons";
Icon::Icon(IconDescriptor descriptor) : _icon(descriptor.icon) {
const auto background = [&] {
if (OptionMonoSettingsIcons.value()) {
const auto background = [&]() -> const style::color* {
if (descriptor.type == IconType::Simple) {
return nullptr;
} else if (OptionMonoSettingsIcons.value()) {
return &st::transparent;
}
if (descriptor.color > 0) {
} else if (descriptor.color > 0) {
const auto list = std::array{
&st::settingsIconBg1,
&st::settingsIconBg2,