diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-09-08 17:04:31 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-09-08 17:04:57 +0200 |
commit | da2988c4356d2756e86037b1c7e859f49583c109 (patch) | |
tree | 73ca076fa1a0f46fa3e3f1e6016d7bf479113491 /src/plugins/Mangadex.cpp | |
parent | 24b0ed2ae8a0d52ceee647e34a943213e9d3bc89 (diff) |
Load theme from file (~/.config/quickmedia/themes/<theme-name>.json and /usr/share/quickmedia/themes/<theme-name>.json)
Diffstat (limited to 'src/plugins/Mangadex.cpp')
-rw-r--r-- | src/plugins/Mangadex.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/Mangadex.cpp b/src/plugins/Mangadex.cpp index 1553d82..34bcfc7 100644 --- a/src/plugins/Mangadex.cpp +++ b/src/plugins/Mangadex.cpp @@ -216,7 +216,7 @@ namespace QuickMedia { const Json::Value &en_json = description_json["en"]; if(en_json.isString()) { body_item->set_description(en_json.asString()); - body_item->set_description_color(get_current_theme().faded_text_color); + body_item->set_description_color(get_theme().faded_text_color); } } @@ -306,7 +306,7 @@ namespace QuickMedia { time_t unix_time = iso_utc_to_unix_time(publish_at_json.asCString()); if(unix_time != 0) { body_item->set_description("Uploaded: " + unix_time_to_local_time_str(unix_time)); - body_item->set_description_color(get_current_theme().faded_text_color); + body_item->set_description_color(get_theme().faded_text_color); } } |