Changeset 115 for trunk/Game.pas
- Timestamp:
- Dec 11, 2024, 10:26:02 AM (11 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Game.pas
r113 r115 409 409 // Clear background 410 410 MetaCanvas.Brush.Style := bsSolid; 411 MetaCanvas.Brush.Color := Core.Core.ThemeManager1. Theme.ColorControl;411 MetaCanvas.Brush.Color := Core.Core.ThemeManager1.ActualTheme.ColorControl; 412 412 MetaCanvas.FillRect(0, 0, MetaCanvas.Width, MetaCanvas.Height); 413 413 … … 663 663 begin 664 664 with Canvas do begin 665 Font.Color := Core.Core.ThemeManager1. Theme.ColorControlText;665 Font.Color := Core.Core.ThemeManager1.ActualTheme.ColorControlText; 666 666 Font.Size := Trunc(ScaleX(BoxFontSize, 96)); 667 667 … … 671 671 672 672 Brush.Style := bsSolid; 673 Brush.Color := Core.Core.ThemeManager1. Theme.ColorWindow;673 Brush.Color := Core.Core.ThemeManager1.ActualTheme.ColorWindow; 674 674 FillRect(Pos.X, Pos.Y, Pos.X + BoxSize.Width, Pos.Y + BoxSize.Height); 675 675 … … 678 678 679 679 Brush.Style := bsClear; 680 Font.Color := Core.Core.ThemeManager1. Theme.ColorControlText;680 Font.Color := Core.Core.ThemeManager1.ActualTheme.ColorControlText; 681 681 Font.Size := Trunc(ScaleX(BoxFontSize, 96)); 682 682 TextOut(Pos.X + (BoxSize.Width - TextWidth(Value)) div 2, … … 1146 1146 Color: TPixel32; 1147 1147 begin 1148 if (Core.Core.ThemeManager1. Theme.Name = ThemeNameDark) or1149 ((Core.Core.ThemeManager1. Theme.Name = ThemeNameSystem) and1148 if (Core.Core.ThemeManager1.ActualTheme.Name = ThemeNameDark) or 1149 ((Core.Core.ThemeManager1.ActualTheme.Name = ThemeNameSystem) and 1150 1150 Core.Core.ThemeManager1.IsDarkTheme) 1151 1151 then begin
Note:
See TracChangeset
for help on using the changeset viewer.