Changeset 113 for trunk/Game.pas


Ignore:
Timestamp:
Dec 10, 2024, 4:51:28 PM (11 days ago)
Author:
chronos
Message:
  • Fixed: Dark theme detection for board colors.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Game.pas

    r112 r113  
    151151
    152152uses
    153   Core, MetaCanvas, PixelPointer;
     153  Core, MetaCanvas, PixelPointer, Theme;
    154154
    155155procedure Translate;
     
    11461146  Color: TPixel32;
    11471147begin
    1148   if Core.Core.ThemeManager1.Theme.Name = 'Dark' then begin
     1148  if (Core.Core.ThemeManager1.Theme.Name = ThemeNameDark) or
     1149  ((Core.Core.ThemeManager1.Theme.Name = ThemeNameSystem) and
     1150  Core.Core.ThemeManager1.IsDarkTheme)
     1151  then begin
    11491152    case Value of
    11501153      0: Result := $222629;
Note: See TracChangeset for help on using the changeset viewer.