Use Green, Orange and Red colors for Selenite's palette

This commit is contained in:
Vyn 2024-11-04 10:49:06 +01:00
parent 668d1df06f
commit 14d04f6a77
4 changed files with 7 additions and 3 deletions

2
external/selenite vendored

@ -1 +1 @@
Subproject commit a2e151c99dd7811f348729aa08c098520cada519
Subproject commit 9cba85a21aa6c2eee6101dd38252249283816327

View file

@ -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);

View file

@ -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));
}

View file

@ -36,7 +36,7 @@ export component EditSourceWindow inherits Window {
}
VButton {
text: "Delete";
background-color: Colors.red;
background-color: Palette.red;
double-clicked => {
Backend.delete-source(root.id)
}