aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Manganelo.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-09-08 17:04:31 +0200
committerdec05eba <dec05eba@protonmail.com>2021-09-08 17:04:57 +0200
commitda2988c4356d2756e86037b1c7e859f49583c109 (patch)
tree73ca076fa1a0f46fa3e3f1e6016d7bf479113491 /src/plugins/Manganelo.cpp
parent24b0ed2ae8a0d52ceee647e34a943213e9d3bc89 (diff)
Load theme from file (~/.config/quickmedia/themes/<theme-name>.json and /usr/share/quickmedia/themes/<theme-name>.json)
Diffstat (limited to 'src/plugins/Manganelo.cpp')
-rw-r--r--src/plugins/Manganelo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/Manganelo.cpp b/src/plugins/Manganelo.cpp
index 90003cb..990a513 100644
--- a/src/plugins/Manganelo.cpp
+++ b/src/plugins/Manganelo.cpp
@@ -67,7 +67,7 @@ namespace QuickMedia {
if(text.data && class_attr.data && string_view_contains(class_attr, "chapter-time") && item_data->index < item_data->body_items->size()) {
std::string uploaded_date(text.data, text.size);
(*item_data->body_items)[item_data->index]->set_description("Uploaded: " + std::move(uploaded_date));
- (*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;
@@ -134,7 +134,7 @@ namespace QuickMedia {
item->url = "https://manganelo.com/manga/" + url_param_encode(nameunsigned.asString());
if(lastchapter.isString() && lastchapter.asCString()[0] != '\0') {
item->set_description("Latest chapter: " + lastchapter.asString());
- item->set_description_color(get_current_theme().faded_text_color);
+ item->set_description_color(get_theme().faded_text_color);
}
Json::Value image = child.get("image", "");
if(image.isString() && image.asCString()[0] != '\0')