mobile-widgets: emit signals for each color

Emit signals for each standard color when theme changes.

The iconStyle property was changed from being a constant, because it can
change, and thus a signal was added.

Signed-off-by: jan Iversen <jan@casacondor.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
jan Iversen 2020-01-15 09:55:00 +01:00 committed by Dirk Hohndel
parent 5a7ebe15a5
commit 906cce9e88
2 changed files with 15 additions and 1 deletions

View file

@ -107,4 +107,17 @@ void themeInterface::update_theme()
m_textColor = m_darkTextColor;
m_iconStyle = ":/icons-dark";
}
emit backgroundColorChanged(m_backgroundColor);
emit contrastAccentColorChanged(m_contrastAccentColor);
emit darkerPrimaryColorChanged(m_darkerPrimaryColor);
emit darkerPrimaryTextColorChanged(m_darkerPrimaryTextColor);
emit drawerColorChanged(m_drawerColor);
emit lightDrawerColorChanged(m_lightDrawerColor);
emit lightPrimaryColorChanged(m_lightPrimaryColor);
emit lightPrimaryTextColorChanged(m_lightPrimaryTextColor);
emit primaryColorChanged(m_primaryColor);
emit primaryTextColorChanged(m_primaryTextColor);
emit secondaryTextColorChanged(m_secondaryTextColor);
emit textColorChanged(m_textColor);
emit iconStyleChanged(m_iconStyle);
}