mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
Don't apply theme accent color to the settings icons.
This commit is contained in:
parent
ffd65e1fe4
commit
eefb9823e1
4 changed files with 15 additions and 5 deletions
|
@ -67,6 +67,14 @@ const auto kColorizeIgnoredKeys = base::flat_set<QLatin1String>{ {
|
|||
qstr("mediaviewFileYellowCornerFg"),
|
||||
qstr("mediaviewFileGreenCornerFg"),
|
||||
qstr("mediaviewFileBlueCornerFg"),
|
||||
qstr("settingsIconBg1"),
|
||||
qstr("settingsIconBg2"),
|
||||
qstr("settingsIconBg3"),
|
||||
qstr("settingsIconBg4"),
|
||||
qstr("settingsIconBg5"),
|
||||
qstr("settingsIconBg6"),
|
||||
qstr("settingsIconBg8"),
|
||||
qstr("settingsIconBgArchive"),
|
||||
} };
|
||||
|
||||
style::colorizer::Color cColor(std::string_view hex) {
|
||||
|
|
|
@ -115,6 +115,7 @@ mainMenuCoverNameLeft: 26px;
|
|||
mainMenuCoverNameTop: 84px;
|
||||
mainMenuCoverStatusLeft: 24px;
|
||||
mainMenuCoverStatusTop: 103px;
|
||||
mainMenuPhoneFont: font(12px);
|
||||
mainMenuSkip: 6px;
|
||||
mainMenuFooterHeightMin: 80px;
|
||||
mainMenu: Menu(defaultMenu) {
|
||||
|
@ -142,7 +143,7 @@ mainMenuAddAccountButton: SettingsButton(mainMenuButton) {
|
|||
}
|
||||
|
||||
mainMenuShadow: icon {{ "menu_shadow", windowShadowFg }};
|
||||
mainMenuAddAccount: icon {{ "settings/add", settingsIconFg }};
|
||||
mainMenuAddAccount: icon {{ "settings/add", windowFgActive }};
|
||||
mainMenuAccountSize: 26px;
|
||||
mainMenuAccountLine: 2px;
|
||||
mainMenuBadgeFont: font(11px bold);
|
||||
|
|
|
@ -274,7 +274,7 @@ void AddUnreadBadge(
|
|||
const auto diameter = full - 2 * shift;
|
||||
const auto rect = QRectF(shift, shift, diameter, diameter);
|
||||
auto hq = PainterHighQualityEnabler(p);
|
||||
auto pen = st::settingsIconBg4->p; // The same as '+' in add.
|
||||
auto pen = st::windowBgActive->p; // The same as '+' in add.
|
||||
pen.setWidthF(line);
|
||||
p.setPen(pen);
|
||||
p.setBrush(Qt::NoBrush);
|
||||
|
@ -901,8 +901,9 @@ not_null<Ui::SlideWrap<Ui::SettingsButton>*> MainMenu::setupAddAccount(
|
|||
st::mainMenuAddAccountButton,
|
||||
{
|
||||
&st::mainMenuAddAccount,
|
||||
kIconLightBlue,
|
||||
0,
|
||||
IconType::Round,
|
||||
&st::windowBgActive
|
||||
})))->setDuration(0);
|
||||
const auto button = result->entity();
|
||||
|
||||
|
@ -1124,7 +1125,7 @@ void MainMenu::paintEvent(QPaintEvent *e) {
|
|||
st::mainMenuCoverNameTop,
|
||||
widthText,
|
||||
width());
|
||||
p.setFont(st::normalFont);
|
||||
p.setFont(st::mainMenuPhoneFont);
|
||||
p.setPen(st::windowSubTextFg);
|
||||
p.drawTextLeft(
|
||||
st::mainMenuCoverStatusLeft,
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 6316443b27cffbf0205e07edc0616d370044893c
|
||||
Subproject commit 34a42aa8c3ea8c00cba5ced73e3bb6a84938cd92
|
Loading…
Add table
Reference in a new issue