From b11c3abc93decfcf82140b92d83a1278bcc51375 Mon Sep 17 00:00:00 2001 From: Rat Date: Mon, 21 Jun 2021 19:28:39 +0300 Subject: hello yes nigeol i added le epic nord theme --- src/Theme.cpp | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) (limited to 'src/Theme.cpp') diff --git a/src/Theme.cpp b/src/Theme.cpp index 6616721..f6fe9e5 100644 --- a/src/Theme.cpp +++ b/src/Theme.cpp @@ -8,7 +8,7 @@ namespace QuickMedia { static bool themes_initialized = false; static int current_theme = Theme::THEME_DARK; - static Theme themes[1]; + static Theme themes[2]; static void init_theme_dark() { themes[Theme::THEME_DARK].background_color = sf::Color(21, 25, 30); @@ -35,11 +35,36 @@ namespace QuickMedia { themes[Theme::THEME_DARK].blur_enabled = true; } + static void init_theme_nord() { + themes[Theme::THEME_NORD].background_color = sf::Color(46, 52, 64); + themes[Theme::THEME_NORD].text_color = sf::Color(236, 239, 244); + themes[Theme::THEME_NORD].faded_text_color = sf::Color(229, 233, 240); + themes[Theme::THEME_NORD].shade_color = sf::Color(67, 76, 94); + themes[Theme::THEME_NORD].selected_color = sf::Color(59, 66, 82); + themes[Theme::THEME_NORD].card_item_background_color = sf::Color(76, 86, 106); + themes[Theme::THEME_NORD].replies_text_color = sf::Color(136, 192, 208); + themes[Theme::THEME_NORD].placeholder_text_color = sf::Color(236, 239, 244); + themes[Theme::THEME_NORD].image_loading_background_color = sf::Color(216, 222, 233); + themes[Theme::THEME_NORD].attention_alert_text_color = sf::Color(191, 97, 106); + themes[Theme::THEME_NORD].cancel_button_background_color = sf::Color(229, 233, 240); + themes[Theme::THEME_NORD].confirm_button_background_color = sf::Color(229, 233, 240); + themes[Theme::THEME_NORD].loading_bar_color = sf::Color(136, 192, 208); + themes[Theme::THEME_NORD].embedded_item_border_color = sf::Color(216, 222, 233); + themes[Theme::THEME_NORD].provisional_message_color = sf::Color(236, 239, 244); + themes[Theme::THEME_NORD].failed_text_color = sf::Color(191, 97, 106); + themes[Theme::THEME_NORD].timestamp_text_color = sf::Color(76, 86, 106); + themes[Theme::THEME_NORD].new_items_alert_color = sf::Color(235, 203, 139); + themes[Theme::THEME_NORD].arrow_color = sf::Color(236, 239, 244); + themes[Theme::THEME_NORD].url_text_color = sf::Color(136, 192, 208); + themes[Theme::THEME_NORD].loading_page_color = sf::Color(229, 233, 240); + } + void init_themes() { if(themes_initialized) return; init_theme_dark(); + init_theme_nord(); themes_initialized = true; char *theme = getenv("QM_THEME"); @@ -48,6 +73,8 @@ namespace QuickMedia { if(strcmp(theme, "default") == 0) set_current_theme(Theme::THEME_DARK); + else if(strcmp(theme, "nord") == 0) + set_current_theme(Theme::THEME_NORD); else fprintf(stderr, "Warning: Invalid theme %s, using the default theme...\n", theme); } @@ -60,4 +87,4 @@ namespace QuickMedia { assert(themes_initialized); return themes[current_theme]; } -} \ No newline at end of file +} -- cgit v1.2.3