mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-24 13:38:14 +08:00
Fix for text color for the mode buttons under Linux with GTK2 (related to #5444)
This commit is contained in:
parent
9704eb6ece
commit
c9da06e44a
@ -16,10 +16,7 @@
|
|||||||
#include "Plater.hpp"
|
#include "Plater.hpp"
|
||||||
#include "../Utils/MacDarkMode.hpp"
|
#include "../Utils/MacDarkMode.hpp"
|
||||||
|
|
||||||
#ifdef __linux__
|
#ifndef __linux__
|
||||||
#define wxLinux true
|
|
||||||
#else
|
|
||||||
#define wxLinux false
|
|
||||||
// msw_menuitem_bitmaps is used for MSW and OSX
|
// msw_menuitem_bitmaps is used for MSW and OSX
|
||||||
static std::map<int, std::string> msw_menuitem_bitmaps;
|
static std::map<int, std::string> msw_menuitem_bitmaps;
|
||||||
#ifdef __WXMSW__
|
#ifdef __WXMSW__
|
||||||
@ -660,7 +657,13 @@ void ModeButton::focus_button(const bool focus)
|
|||||||
Slic3r::GUI::wxGetApp().normal_font();
|
Slic3r::GUI::wxGetApp().normal_font();
|
||||||
|
|
||||||
SetFont(new_font);
|
SetFont(new_font);
|
||||||
SetForegroundColour(wxSystemSettings::GetColour(focus ? wxSYS_COLOUR_BTNTEXT : wxLinux ? wxSYS_COLOUR_GRAYTEXT : wxSYS_COLOUR_BTNSHADOW));
|
SetForegroundColour(wxSystemSettings::GetColour(focus ? wxSYS_COLOUR_BTNTEXT :
|
||||||
|
#if defined (__linux__) && defined (__WXGTK3__)
|
||||||
|
wxSYS_COLOUR_GRAYTEXT
|
||||||
|
#else
|
||||||
|
wxSYS_COLOUR_BTNSHADOW
|
||||||
|
#endif
|
||||||
|
));
|
||||||
|
|
||||||
Refresh();
|
Refresh();
|
||||||
Update();
|
Update();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user