Improve colors for SideBarButton.
This commit is contained in:
parent
4b6b328130
commit
e4e8faaa73
2 changed files with 9 additions and 3 deletions
|
|
@ -594,12 +594,12 @@ walletTopIconFg: walletTopLabelFg; // wallet top refresh and menu icons
|
|||
walletTopIconRipple: #ffffff12; // wallet top menu icon ripple effect
|
||||
|
||||
sideBarBg: #293a4c; // filters side bar background
|
||||
sideBarBgActive: #17212c; // filters side bar active background
|
||||
sideBarBgRipple: #1c2835; // filters side bar ripple effect
|
||||
sideBarBgActive: #17212b; // filters side bar active background
|
||||
sideBarBgRipple: #1e2b38; // filters side bar ripple effect
|
||||
sideBarTextFg: #8897a6; // filters side bar text
|
||||
sideBarTextFgActive: #64b9fa; // filters side bar active item text
|
||||
sideBarIconFg: #8393a3; // filters side bar icon
|
||||
sideBarIconFgActive: #5eb5f7; // filters side bar active item icon
|
||||
sideBarBadgeBg: #5eb5f7; // filters side bar badge background
|
||||
sideBarBadgeBgMuted: #aaaaaa; // filters side bar unimportant badge background
|
||||
sideBarBadgeBgMuted: #8393a3; // filters side bar unimportant badge background
|
||||
sideBarBadgeFg: #ffffff; // filters side bar badge text
|
||||
|
|
|
|||
|
|
@ -26,6 +26,12 @@ SideBarButton::SideBarButton(
|
|||
, _text(_st.minTextWidth) {
|
||||
_text.setText(_st.style, title);
|
||||
setAttribute(Qt::WA_OpaquePaintEvent);
|
||||
|
||||
style::PaletteChanged(
|
||||
) | rpl::start_with_next([=] {
|
||||
_iconCache = _iconCacheActive = QImage();
|
||||
update();
|
||||
}, lifetime());
|
||||
}
|
||||
|
||||
void SideBarButton::setActive(bool active) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue