Skip to content

Commit

Permalink
ThemeProvider: Detect auto comments, updated themes
Browse files Browse the repository at this point in the history
  • Loading branch information
Dax89 committed Mar 29, 2021
1 parent 053322a commit 043686d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 12 deletions.
2 changes: 1 addition & 1 deletion LibREDasm
5 changes: 1 addition & 4 deletions themeprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@ QIcon ThemeProvider::icon(const QString &name)
.arg(name));
}

QColor ThemeProvider::seekColor() { return ThemeProvider::themeValue(Theme_Seek); }
QColor ThemeProvider::metaColor() { return ThemeProvider::themeValue(Theme_Meta); }

void ThemeProvider::applyTheme()
{
REDasmSettings settings;
Expand Down Expand Up @@ -90,8 +87,8 @@ void ThemeProvider::applyListingTheme()
{ "foreground", Theme_Foreground },
{ "background", Theme_Background },
{ "seek", Theme_Seek },
{ "auto_comment", Theme_AutoComment },
{ "comment", Theme_Comment },
{ "meta", Theme_Meta },
{ "highlight_fg", Theme_HighlightFg },
{ "highlight_bg", Theme_HighlightBg },
{ "selection_fg", Theme_SelectionFg },
Expand Down
2 changes: 0 additions & 2 deletions themeprovider.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ class ThemeProvider
static bool isDarkTheme();
static QColor themeValue(rd_type theme);
static QIcon icon(const QString& name);
static QColor seekColor();
static QColor metaColor();
static void applyTheme();

private:
Expand Down
7 changes: 4 additions & 3 deletions themes/dark.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@
"ToolTipText": "#ecf0f1",

"seek": "#3b3b3b",
"comment": "#16a085",
"comment": "#2ecc71",
"auto_comment": "#16a085",

"highlight_fg": "#3b3b3b",
"highlight_bg": "#2ecc71",
"highlight_bg": "#ef717a",

"segment": "#2ecc71",
"segment": "#f47cc3",
"function": "#3498db",

"address": "#6a89b4",
Expand Down
5 changes: 3 additions & 2 deletions themes/light.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"seek": "#ecf0f1",
"comment": "#356272",
"comment": "#3974aa",
"auto_comment": "#0f4f34",

"highlight_fg": "#2b2b2b",
"highlight_bg": "#aefbaf",

"segment": "#008080",
"segment": "#662621",
"function": "#c71585",

"address": "#065f88",
Expand Down

0 comments on commit 043686d

Please sign in to comment.