mirror of
https://codeberg.org/vyn/mirai.git
synced 2025-07-03 01:33:19 +00:00
Use Green, Orange and Red colors for Selenite's palette
This commit is contained in:
parent
668d1df06f
commit
14d04f6a77
4 changed files with 7 additions and 3 deletions
|
@ -55,6 +55,7 @@ AppWindowBackend::AppWindowBackend(mirai::Mirai *miraiInstance)
|
|||
setSelenitePalette(mainWindow_->global<ui::Palette>(), palette.value());
|
||||
setSelenitePalette(settingsWindow_->global<ui::Palette>(), palette.value());
|
||||
setSelenitePalette(addSourceWindow_->global<ui::Palette>(), palette.value());
|
||||
setSelenitePalette(editSourceWindow_->global<ui::Palette>(), palette.value());
|
||||
}
|
||||
|
||||
mainWindow_->global<ui::Backend>().set_sources(sourcesNames);
|
||||
|
|
|
@ -17,6 +17,7 @@ slint::Color seleniteColorToSlint(const selenite::Color &color)
|
|||
|
||||
void setSelenitePalette(const ui::Palette &uiPalette, const selenite::Palette &palette)
|
||||
{
|
||||
uiPalette.set_accent(seleniteColorToSlint(palette.primary));
|
||||
uiPalette.set_background(seleniteColorToSlint(palette.background));
|
||||
uiPalette.set_pane(seleniteColorToSlint(palette.pane));
|
||||
uiPalette.set_foreground(seleniteColorToSlint(palette.foreground));
|
||||
|
@ -24,5 +25,7 @@ void setSelenitePalette(const ui::Palette &uiPalette, const selenite::Palette &p
|
|||
uiPalette.set_control_background(seleniteColorToSlint(palette.background3));
|
||||
uiPalette.set_control_foreground(seleniteColorToSlint(palette.foreground));
|
||||
uiPalette.set_card_background(seleniteColorToSlint(palette.background2));
|
||||
uiPalette.set_accent(seleniteColorToSlint(palette.primary));
|
||||
uiPalette.set_green(seleniteColorToSlint(palette.green));
|
||||
uiPalette.set_orange(seleniteColorToSlint(palette.orange));
|
||||
uiPalette.set_red(seleniteColorToSlint(palette.red));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue