mirror of https://github.com/procxx/kepka.git
Change manage folders button icon.
This commit is contained in:
parent
f370ca97d0
commit
1fdd591aa0
Binary file not shown.
After Width: | Height: | Size: 339 B |
Binary file not shown.
After Width: | Height: | Size: 686 B |
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
|
@ -130,6 +130,11 @@ const auto kIcons = std::vector<FilterIcons>{
|
||||||
&st::foldersWorkActive,
|
&st::foldersWorkActive,
|
||||||
"\xF0\x9F\x92\xBC"_cs.utf16()
|
"\xF0\x9F\x92\xBC"_cs.utf16()
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
&st::filtersEdit,
|
||||||
|
&st::filtersEdit,
|
||||||
|
QString()
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
@ -145,6 +150,9 @@ std::optional<FilterIcon> LookupFilterIconByEmoji(const QString &emoji) {
|
||||||
auto result = base::flat_map<EmojiPtr, FilterIcon>();
|
auto result = base::flat_map<EmojiPtr, FilterIcon>();
|
||||||
auto index = 0;
|
auto index = 0;
|
||||||
for (const auto &entry : kIcons) {
|
for (const auto &entry : kIcons) {
|
||||||
|
if (entry.emoji.isEmpty()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
const auto emoji = Ui::Emoji::Find(entry.emoji);
|
const auto emoji = Ui::Emoji::Find(entry.emoji);
|
||||||
Assert(emoji != nullptr);
|
Assert(emoji != nullptr);
|
||||||
result.emplace(emoji, static_cast<FilterIcon>(index++));
|
result.emplace(emoji, static_cast<FilterIcon>(index++));
|
||||||
|
|
|
@ -44,6 +44,8 @@ enum class FilterIcon : uchar {
|
||||||
Trade,
|
Trade,
|
||||||
Travel,
|
Travel,
|
||||||
Work,
|
Work,
|
||||||
|
|
||||||
|
Edit,
|
||||||
};
|
};
|
||||||
|
|
||||||
struct FilterIcons {
|
struct FilterIcons {
|
||||||
|
|
|
@ -26,6 +26,8 @@ filtersCustomActive: icon {{ "filters/filters_custom_active", sideBarIconFgActiv
|
||||||
filtersSetup: icon {{ "filters/filters_setup", sideBarIconFg }};
|
filtersSetup: icon {{ "filters/filters_setup", sideBarIconFg }};
|
||||||
filtersSetupActive: icon {{ "filters/filters_setup", sideBarIconFgActive }};
|
filtersSetupActive: icon {{ "filters/filters_setup", sideBarIconFgActive }};
|
||||||
|
|
||||||
|
filtersEdit: icon {{ "filters/filters_edit", sideBarIconFg }};
|
||||||
|
|
||||||
foldersCat: icon {{ "filters/folders_cat", sideBarIconFg }};
|
foldersCat: icon {{ "filters/folders_cat", sideBarIconFg }};
|
||||||
foldersCatActive: icon {{ "filters/folders_cat_active", sideBarIconFgActive }};
|
foldersCatActive: icon {{ "filters/folders_cat_active", sideBarIconFgActive }};
|
||||||
foldersCrown: icon {{ "filters/folders_crown", sideBarIconFg }};
|
foldersCrown: icon {{ "filters/folders_crown", sideBarIconFg }};
|
||||||
|
|
|
@ -198,7 +198,7 @@ void FiltersMenu::setupList() {
|
||||||
_container,
|
_container,
|
||||||
-1,
|
-1,
|
||||||
tr::lng_filters_setup(tr::now),
|
tr::lng_filters_setup(tr::now),
|
||||||
Ui::FilterIcon::Setup);
|
Ui::FilterIcon::Edit);
|
||||||
_reorder = std::make_unique<Ui::VerticalLayoutReorder>(_list, &_scroll);
|
_reorder = std::make_unique<Ui::VerticalLayoutReorder>(_list, &_scroll);
|
||||||
|
|
||||||
_reorder->updates(
|
_reorder->updates(
|
||||||
|
|
Loading…
Reference in New Issue