mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 22:25:12 +00:00
Don't apply theme accent color to the settings icons.
This commit is contained in:
@@ -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,
|
||||
|
Submodule Telegram/lib_ui updated: 6316443b27...34a42aa8c3
Reference in New Issue
Block a user