changeset 29523:71e979cf1319

improve some gui colors for dark system themes * gui-preferences-ws.h: select other color roles for the variable classes in the workspace view * welcome-wizard.cc (setup_community_news): remove style tags which were explicitly setting the link color to a constant value regardless the overall color theme
author Torsten Lilge <ttl-octave@mailbox.org>
date Sun, 11 Apr 2021 19:22:30 +0200
parents 82aaf001abee
children 730cac3d6d5a
files libgui/src/gui-preferences-ws.h libgui/src/welcome-wizard.cc
diffstat 2 files changed, 2 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/libgui/src/gui-preferences-ws.h	Sun Apr 11 19:22:29 2021 +0200
+++ b/libgui/src/gui-preferences-ws.h	Sun Apr 11 19:22:30 2021 +0200
@@ -76,8 +76,8 @@
 const int ws_colors_count = 3;
 const gui_pref ws_colors[2*ws_colors_count] =
 {
-  {"workspaceview/color_a" + settings_color_modes_ext[0], QVariant (QPalette::Button)},
-  {"workspaceview/color_g" + settings_color_modes_ext[0], QVariant (QPalette::Mid)},
+  {"workspaceview/color_a" + settings_color_modes_ext[0], QVariant (QPalette::Highlight)},
+  {"workspaceview/color_g" + settings_color_modes_ext[0], QVariant (QPalette::Midlight)},
   {"workspaceview/color_p" + settings_color_modes_ext[0], QVariant (QPalette::Dark)},
   {"workspaceview/color_a" + settings_color_modes_ext[1], QVariant ()},
   {"workspaceview/color_g" + settings_color_modes_ext[1], QVariant ()},
--- a/libgui/src/welcome-wizard.cc	Sun Apr 11 19:22:29 2021 +0200
+++ b/libgui/src/welcome-wizard.cc	Sun Apr 11 19:22:30 2021 +0200
@@ -265,9 +265,6 @@
 
     m_checkbox_message->setText
       (tr ("<html><head>\n"
-           "<style>\n"
-           "a:link { text-decoration: underline; color: #0000ff; }\n"
-           "</style>\n"
            "</head><body>\n"
            "<p>Allow Octave to connect to the Octave web site when it starts to display current news and information about the Octave community.</p>\n"
            "</body></html>"));
@@ -351,9 +348,6 @@
 
     m_links->setText
       (tr ("<html><head>\n"
-           "<style>\n"
-           "a:link { text-decoration: underline; color: #0000ff; }\n"
-           "</style>\n"
            "</head><body>\n"
            "<p>For more information about Octave:</p>\n"
            "<ul>\n"