From da2988c4356d2756e86037b1c7e859f49583c109 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 8 Sep 2021 17:04:31 +0200 Subject: Load theme from file (~/.config/quickmedia/themes/.json and /usr/share/quickmedia/themes/.json) --- src/plugins/MyAnimeList.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/plugins/MyAnimeList.cpp') diff --git a/src/plugins/MyAnimeList.cpp b/src/plugins/MyAnimeList.cpp index 5f5ae40..16f07f9 100644 --- a/src/plugins/MyAnimeList.cpp +++ b/src/plugins/MyAnimeList.cpp @@ -85,7 +85,7 @@ namespace QuickMedia { if(!description.empty()) { body_item->set_description(std::move(description)); - body_item->set_description_color(get_current_theme().faded_text_color); + body_item->set_description_color(get_theme().faded_text_color); } return body_item; @@ -284,7 +284,7 @@ namespace QuickMedia { std::string description(text.data, text.size); html_unescape_sequences(description); (*item_data->body_items)[item_data->index]->set_description(std::move(description)); - (*item_data->body_items)[item_data->index]->set_description_color(get_current_theme().faded_text_color); + (*item_data->body_items)[item_data->index]->set_description_color(get_theme().faded_text_color); item_data->index++; } return 0; @@ -302,7 +302,7 @@ namespace QuickMedia { auto body_item = BodyItem::create(""); body_item->set_description(std::move(description)); - body_item->set_description_color(get_current_theme().faded_text_color); + body_item->set_description_color(get_theme().faded_text_color); result_items->push_back(std::move(body_item)); } return 0; -- cgit v1.2.3