source: tags/1.3.0/UColors.pas

Last change on this file was 100, checked in by chronos, 20 months ago
  • Added: New game mode carrier where user needs to play existing cities and gradually unlock them by reaching exprected transported number of passengers.
File size: 1023 bytes
Line 
1unit UColors;
2
3interface
4
5uses
6 Classes, SysUtils, Graphics;
7
8type
9
10 { TColors }
11
12 TColors = record
13 Background: TColor;
14 Background2: TColor;
15 Text: TColor;
16 ShapeBackground: TColor;
17 MenuItemText: TColor;
18 MenuItemDisabledText: TColor;
19 MenuItemBackground: TColor;
20 MenuItemBackgroundSelected: TColor;
21 procedure Init(DarkMode: Boolean);
22 end;
23
24
25implementation
26
27{ TColors }
28
29procedure TColors.Init(DarkMode: Boolean);
30begin
31 if DarkMode then begin
32 Background := $2f3020;
33 Background2 := $4f5040;
34 Text := clWhite;
35 ShapeBackground := clBlack;
36 MenuItemText := $cccccc;
37 MenuItemDisabledText := $888888;
38 MenuItemBackground := $b75C01;
39 MenuItemBackgroundSelected := $070C81;
40 end else begin
41 Background := $eff0e0;
42 Background2 := $cfd0c0;
43 Text := clBlack;
44 ShapeBackground := clWhite;
45 MenuItemText := clWhite;
46 MenuItemDisabledText := clSilver;
47 MenuItemBackground := $e78C31;
48 MenuItemBackgroundSelected := $f7bC61;
49 end;
50end;
51
52end.
53
Note: See TracBrowser for help on using the repository browser.