Changeset 711


Ignore:
Timestamp:
Nov 28, 2025, 11:34:48 PM (3 hours ago)
Author:
chronos
Message:
  • Fixed: Edit boxes to have black background and blue selection.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/CevoComponents/ScreenTools.pas

    r684 r711  
    17991799
    18001800procedure Gtk2DisableControlStyling(WinControl: TWinControl);
    1801 begin
     1801{$IFDEF LCLGTK2}
     1802var
     1803  GtkWhite: string;
     1804  GtkBlue: string;
     1805  GtkBlack: string;
     1806  GtkOrange: string;
     1807{$ENDIF}
     1808begin
     1809  {$IFDEF LCLGTK2}
    18021810  // 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
    18041816  // parse gtkrc from string
    18051817  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
    18071832    '}' + LineEnding +
    18081833    'widget "*.your-edit" style "noengine"'));
Note: See TracChangeset for help on using the changeset viewer.