You are here

Add new comment

The grayscale theme has been updated (e.g. heavily borrowed from our CSS-Jedi G3N-es). The biggest update is how the selected mixer strips are highlighted. I spent some time in qtractorMixer.cpp wrestling with things (getting nowhere) and ended up brute forcing my solution. There seems to be this assumption made that a selected track (and now his friends) should be darkened. With a darker theme, that's not going to work. There also seems to be some voodoo involving a strange (abusive?) relationship between the midlight and base colors I just don't understand. In order to overcome these issues, did terrible things in the form of the following:

commit c1b71bcc36f2859fea0f43404d931fdb3b95ba9f
Author: windowsrefund <mtf8>
Date:   Tue Aug 13 07:54:26 2024 -0400

    make mixer strip highlighting work for this theme

diff --git a/src/qtractorMixer.cpp b/src/qtractorMixer.cpp
index 3b473d94..1780e97e 100644
--- a/src/qtractorMixer.cpp
+++ b/src/qtractorMixer.cpp
@@ -770,13 +770,13 @@ void qtractorMixerStrip::setSelected ( bool bSelected )
    QPalette pal;
    QColor rgbBase;
    if (m_bSelected) {
-       rgbBase = pal.midlight().color();
+       rgbBase = pal.highlight().color();
        pal.setColor(QPalette::WindowText,
            pal.highlightedText().color());
        pal.setColor(QPalette::Window,
-           rgbBase.darker(150));
+           rgbBase.darker(120));
    } else {
-       rgbBase = pal.window().color();
+       rgbBase = pal.shadow().color();
        pal.setColor(QPalette::WindowText,
            pal.windowText().color());
        pal.setColor(QPalette::Window,