mirror of
https://github.com/YACReader/yacreader
synced 2026-04-12 15:49:53 -04:00
Replace goto.png with a themeable svg image
Some checks failed
Build / Initialization (push) Has been cancelled
Build / Code Format Validation (push) Has been cancelled
Build / Linux (Qt6) (push) Has been cancelled
Build / Linux (Qt6 + 7zip) (push) Has been cancelled
Build / macOS (Qt6 Universal) (push) Has been cancelled
Build / Windows x64 (Qt6) (push) Has been cancelled
Build / Windows ARM64 (Qt6) (push) Has been cancelled
Build / Docker amd64 Image (push) Has been cancelled
Build / Docker arm64 Image (push) Has been cancelled
Build / Publish Dev Builds (push) Has been cancelled
Build / Publish Release (push) Has been cancelled
Build / Publish YACReader10 Pre-release Builds (push) Has been cancelled
Some checks failed
Build / Initialization (push) Has been cancelled
Build / Code Format Validation (push) Has been cancelled
Build / Linux (Qt6) (push) Has been cancelled
Build / Linux (Qt6 + 7zip) (push) Has been cancelled
Build / macOS (Qt6 Universal) (push) Has been cancelled
Build / Windows x64 (Qt6) (push) Has been cancelled
Build / Windows ARM64 (Qt6) (push) Has been cancelled
Build / Docker amd64 Image (push) Has been cancelled
Build / Docker arm64 Image (push) Has been cancelled
Build / Publish Dev Builds (push) Has been cancelled
Build / Publish Release (push) Has been cancelled
Build / Publish YACReader10 Pre-release Builds (push) Has been cancelled
This commit is contained in:
@ -1,4 +1,7 @@
|
||||
{
|
||||
"dialogIcons": {
|
||||
"iconColor": "#404040"
|
||||
},
|
||||
"goToFlowWidget": {
|
||||
"editBackgroundColor": "#55000000",
|
||||
"editBorderColor": "#77000000",
|
||||
|
||||
@ -1,4 +1,7 @@
|
||||
{
|
||||
"dialogIcons": {
|
||||
"iconColor": "#cccccc"
|
||||
},
|
||||
"goToFlowWidget": {
|
||||
"editBackgroundColor": "#55000000",
|
||||
"editBorderColor": "#77000000",
|
||||
|
||||
@ -1,4 +1,7 @@
|
||||
{
|
||||
"dialogIcons": {
|
||||
"iconColor": "#404040"
|
||||
},
|
||||
"goToFlowWidget": {
|
||||
"editBackgroundColor": "#22000000",
|
||||
"editBorderColor": "#33000000",
|
||||
|
||||
@ -182,6 +182,7 @@ struct ShortcutsIconsTheme {
|
||||
|
||||
struct DialogIconsTheme {
|
||||
QIcon findFolderIcon;
|
||||
QPixmap goToDialogIcon;
|
||||
};
|
||||
|
||||
struct Theme {
|
||||
|
||||
@ -56,6 +56,10 @@ struct ShortcutsIconsParams {
|
||||
QColor iconColor; // Main icon color (replaces #f0f)
|
||||
};
|
||||
|
||||
struct DialogIconsParams {
|
||||
QColor iconColor; // Main icon color (replaces #f0f)
|
||||
};
|
||||
|
||||
struct TranslatorParams {
|
||||
TranslatorThemeTemplates t;
|
||||
|
||||
@ -79,6 +83,7 @@ struct ThemeParams {
|
||||
HelpAboutDialogTheme helpAboutDialogParams;
|
||||
WhatsNewDialogParams whatsNewDialogParams;
|
||||
ShortcutsIconsParams shortcutsIconsParams;
|
||||
DialogIconsParams dialogIconsParams;
|
||||
TranslatorParams translatorParams;
|
||||
};
|
||||
|
||||
@ -340,6 +345,11 @@ Theme makeTheme(const QJsonObject &json)
|
||||
p.shortcutsIconsParams.iconColor = colorFromJson(s, "iconColor", p.shortcutsIconsParams.iconColor);
|
||||
}
|
||||
|
||||
if (json.contains("dialogIcons")) {
|
||||
const auto o = json["dialogIcons"].toObject();
|
||||
p.dialogIconsParams.iconColor = colorFromJson(o, "iconColor", p.dialogIconsParams.iconColor);
|
||||
}
|
||||
|
||||
if (json.contains("translator")) {
|
||||
const auto t = json["translator"].toObject();
|
||||
auto &tp = p.translatorParams;
|
||||
|
||||
Reference in New Issue
Block a user