Skip to content

Commit

Permalink
chore: remove unused overlay theme keys
Browse files Browse the repository at this point in the history
These weren't used, but I'd like to have something like this in the future.
Not eaxactly sure what the api should be (settings/theme)
  • Loading branch information
Nerixyz committed Sep 30, 2024
1 parent c829dcb commit c271272
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 40 deletions.
9 changes: 1 addition & 8 deletions docs/ChatterinoTheme.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -293,19 +293,12 @@
"backgrounds": { "$ref": "#/definitions/message-backgrounds" },
"disabled": { "$ref": "#/definitions/qt-color" },
"selection": { "$ref": "#/definitions/qt-color" },
"textColors": { "$ref": "#/definitions/text-colors" },
"background": {
"$ref": "#/definitions/qt-color",
"description": "Note: The alpha value is ignored (set through the settings)"
}
},
"required": [
"backgrounds",
"disabled",
"selection",
"textColors",
"background"
]
"required": ["backgrounds", "disabled", "selection", "background"]
},
"scrollbars": {
"type": "object",
Expand Down
7 changes: 0 additions & 7 deletions resources/themes/Black.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,6 @@
},
"disabled": "#64000000",
"selection": "#40ffffff",
"textColors": {
"caret": "#ffffff",
"chatPlaceholder": "#5d5555",
"link": "#4286f4",
"regular": "#ffffff",
"system": "#8c7f7f"
},
"background": "#000"
},
"scrollbars": {
Expand Down
7 changes: 0 additions & 7 deletions resources/themes/Dark.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,6 @@
},
"disabled": "#64000000",
"selection": "#40ffffff",
"textColors": {
"caret": "#ffffff",
"chatPlaceholder": "#5d5555",
"link": "#4286f4",
"regular": "#ffffff",
"system": "#8c7f7f"
},
"background": "#000"
},
"scrollbars": {
Expand Down
7 changes: 0 additions & 7 deletions resources/themes/Light.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,6 @@
},
"disabled": "#64ffffff",
"selection": "#40ffffff",
"textColors": {
"caret": "#000000",
"chatPlaceholder": "#af9f9f",
"link": "#4286f4",
"regular": "#000000",
"system": "#8c7f7f"
},
"background": "#fff"
},
"scrollbars": {
Expand Down
7 changes: 0 additions & 7 deletions resources/themes/White.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,6 @@
},
"disabled": "#64ffffff",
"selection": "#40ffffff",
"textColors": {
"caret": "#000000",
"chatPlaceholder": "#af9f9f",
"link": "#4286f4",
"regular": "#000000",
"system": "#8c7f7f"
},
"background": "#fff"
},
"scrollbars": {
Expand Down
3 changes: 0 additions & 3 deletions src/singletons/Theme.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,6 @@ void parseOverlayMessages(const QJsonObject &overlayMessages,
const QJsonObject &overlayMessagesFallback,
chatterino::Theme &theme)
{
parseTextColors(overlayMessages["textColors"_L1].toObject(),
overlayMessagesFallback["textColors"_L1].toObject(),
theme.overlayMessages);
parseMessageBackgrounds(
overlayMessages["backgrounds"_L1].toObject(),
overlayMessagesFallback["backgrounds"_L1].toObject(),
Expand Down
1 change: 0 additions & 1 deletion src/singletons/Theme.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ class Theme final
} messages;

struct {
TextColors textColors;
MessageBackgrounds backgrounds;

QColor disabled;
Expand Down

0 comments on commit c271272

Please sign in to comment.