Changeset 711 for trunk/Packages/CevoComponents
- Timestamp:
- Nov 28, 2025, 11:34:48 PM (10 hours ago)
- File:
-
- 1 edited
-
trunk/Packages/CevoComponents/ScreenTools.pas (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/CevoComponents/ScreenTools.pas
r684 r711 1799 1799 1800 1800 procedure Gtk2DisableControlStyling(WinControl: TWinControl); 1801 begin 1801 {$IFDEF LCLGTK2} 1802 var 1803 GtkWhite: string; 1804 GtkBlue: string; 1805 GtkBlack: string; 1806 GtkOrange: string; 1807 {$ENDIF} 1808 begin 1809 {$IFDEF LCLGTK2} 1802 1810 // https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/38516 1803 {$IFDEF LCLGTK2} 1811 GtkBlue := '{ 0.373, 0.467, 0.796 }'; 1812 GtkWhite := '{ 1.0, 1.0, 1.0 }'; 1813 GtkBlack := '{ 0, 0, 0 }'; 1814 GtkOrange := '{ 0.373, 0.465, 0.793 }'; 1815 1804 1816 // parse gtkrc from string 1805 1817 gtk_rc_parse_string(PChar('style "noengine" {' + LineEnding + 1806 'engine "" {}' + LineEnding + 1818 'engine "" { }' + LineEnding + 1819 1820 'base[INSENSITIVE] = ' + GtkBlack + LineEnding + 1821 'base[PRELIGHT] = ' + GtkBlack + LineEnding + 1822 'base[NORMAL] = ' + GtkBlack + LineEnding + 1823 'base[SELECTED] = ' + GtkBlue + LineEnding + 1824 'base[ACTIVE] = ' + GtkBlack + LineEnding + 1825 1826 'text[INSENSITIVE] = ' + GtkOrange + LineEnding + 1827 'text[NORMAL] = ' + GtkOrange + LineEnding + 1828 'text[PRELIGHT] = ' + GtkOrange + LineEnding + 1829 'text[SELECTED] = ' + GtkWhite + LineEnding + 1830 'text[ACTIVE] = ' + GtkOrange + LineEnding + 1831 1807 1832 '}' + LineEnding + 1808 1833 'widget "*.your-edit" style "noengine"'));
Note:
See TracChangeset
for help on using the changeset viewer.
