GithubHelp home page GithubHelp logo

Comments (2)

vadz avatar vadz commented on June 15, 2024

Strangely, I have a different problem: for me, with the default GNOME dark theme (i.e. dark variant of Adwaita), the disabled text colour is just the same white as for the normal cells. And this is not really surprising seeing that it is set to the same colour as the normal caption colour by default here:

m_colDisPropFore = m_colCapFore;

I can fix this by applying

diff --git a/src/propgrid/propgrid.cpp b/src/propgrid/propgrid.cpp
index 937d08e615..1ecfe88853 100644
--- a/src/propgrid/propgrid.cpp
+++ b/src/propgrid/propgrid.cpp
@@ -1499,7 +1499,7 @@ void wxPropertyGrid::RegainColours()
         m_colLine = m_colCapBack;
 
     if ( !(m_coloursCustomized & CustomColour_DisabledText) )
-        m_colDisPropFore = m_colCapFore;
+        m_colDisPropFore = wxSystemSettings::GetColour( wxSYS_COLOUR_GRAYTEXT );
 
     m_colEmptySpace = wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOW );
 }

but I feel like I'm missing something here: how come the colour is grey even without this change in the light theme, as can be easily seen in the propgrid sample, which has a few disabled properties by default ("OS", "User Id", "User Name")?

from wxwidgets.

StefanBattmer avatar StefanBattmer commented on June 15, 2024

@vadz: Many, many thanks! Fun fact: We just kind of met again: swig/swig#2889 ;-)

from wxwidgets.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.