💄 Enable UI scaling

This commit is contained in:
2022-05-07 11:59:04 +02:00
parent 900603dd00
commit 5e47564252
21 changed files with 1367 additions and 1288 deletions
+137 -133
View File
@@ -1,20 +1,19 @@
object frmLogin: TfrmLogin
Left = 290
Height = 265
Height = 331
Top = 201
Width = 483
Width = 604
ActiveControl = btnOK
BorderIcons = [biSystemMenu]
BorderStyle = bsDialog
Caption = 'UO CentrED'
ClientHeight = 265
ClientWidth = 483
Font.Height = -11
ClientHeight = 331
ClientWidth = 604
Font.Height = -14
OnClose = FormClose
OnCreate = FormCreate
Position = poScreenCenter
ShowInTaskBar = stAlways
LCLVersion = '0.9.31'
object lblCopyright: TLabel
AnchorSideLeft.Control = Owner
AnchorSideTop.Control = gbData
@@ -24,13 +23,14 @@ object frmLogin: TfrmLogin
AnchorSideBottom.Control = Owner
AnchorSideBottom.Side = asrBottom
Left = 0
Height = 14
Top = 249
Width = 483
Height = 20
Top = 311
Width = 604
Alignment = taCenter
Anchors = [akTop, akLeft, akRight]
BorderSpacing.Top = 8
BorderSpacing.Top = 10
Caption = ' '
Color = clDefault
ParentColor = False
end
object gbConnection: TGroupBox
@@ -38,42 +38,46 @@ object frmLogin: TfrmLogin
AnchorSideTop.Control = Owner
AnchorSideRight.Control = gbActions
AnchorSideBottom.Side = asrCenter
Left = 8
Height = 138
Top = 4
Width = 316
Left = 10
Height = 172
Top = 5
Width = 395
Anchors = [akTop, akLeft, akRight]
BorderSpacing.Left = 8
BorderSpacing.Top = 4
BorderSpacing.Right = 8
BorderSpacing.Left = 10
BorderSpacing.Top = 5
BorderSpacing.Right = 10
Caption = 'Connection'
ClientHeight = 120
ClientWidth = 312
ClientHeight = 151
ClientWidth = 393
TabOrder = 0
object lblHost: TLabel
AnchorSideLeft.Control = imgHost
AnchorSideLeft.Side = asrBottom
AnchorSideTop.Control = edHost
AnchorSideTop.Side = asrCenter
Left = 32
Height = 14
Top = 11
Width = 28
BorderSpacing.Left = 8
Left = 36
Height = 20
Top = 16
Width = 34
BorderSpacing.Left = 10
Caption = 'Host:'
Color = clDefault
Font.Height = -14
ParentColor = False
ParentFont = False
end
object lblUsername: TLabel
AnchorSideLeft.Control = imgUsername
AnchorSideLeft.Side = asrBottom
AnchorSideTop.Control = edUsername
AnchorSideTop.Side = asrCenter
Left = 32
Height = 14
Top = 49
Width = 55
BorderSpacing.Left = 8
Left = 36
Height = 20
Top = 69
Width = 73
BorderSpacing.Left = 10
Caption = 'Username:'
Color = clDefault
ParentColor = False
end
object lblPassword: TLabel
@@ -81,24 +85,25 @@ object frmLogin: TfrmLogin
AnchorSideLeft.Side = asrBottom
AnchorSideTop.Control = edPassword
AnchorSideTop.Side = asrCenter
Left = 32
Height = 14
Top = 86
Width = 53
BorderSpacing.Left = 8
Left = 36
Height = 20
Top = 121
Width = 68
BorderSpacing.Left = 10
Caption = 'Password:'
Color = clDefault
ParentColor = False
end
object imgHost: TImage
AnchorSideLeft.Control = gbConnection
AnchorSideTop.Control = lblHost
AnchorSideTop.Side = asrCenter
Left = 8
Left = 10
Height = 16
Top = 10
Top = 18
Width = 16
AutoSize = True
BorderSpacing.Left = 8
BorderSpacing.Left = 10
Picture.Data = {
07545069786D61702E0A00002F2A2058504D202A2F0A73746174696320636861
72202A64756D6D795B5D3D7B0A223136203136203132342032222C0A22517420
@@ -189,9 +194,9 @@ object frmLogin: TfrmLogin
AnchorSideLeft.Control = imgHost
AnchorSideTop.Control = lblUsername
AnchorSideTop.Side = asrCenter
Left = 8
Left = 10
Height = 16
Top = 48
Top = 71
Width = 16
AutoSize = True
Picture.Data = {
@@ -284,9 +289,9 @@ object frmLogin: TfrmLogin
AnchorSideLeft.Control = imgUsername
AnchorSideTop.Control = lblPassword
AnchorSideTop.Side = asrCenter
Left = 8
Left = 10
Height = 16
Top = 85
Top = 123
Width = 16
AutoSize = True
Picture.Data = {
@@ -370,13 +375,13 @@ object frmLogin: TfrmLogin
AnchorSideLeft.Side = asrBottom
AnchorSideTop.Control = gbConnection
AnchorSideRight.Control = edPort
Left = 95
Height = 21
Top = 8
Width = 146
Left = 119
Height = 32
Top = 10
Width = 185
Anchors = [akTop, akLeft, akRight]
BorderSpacing.Left = 8
BorderSpacing.Top = 8
BorderSpacing.Left = 10
BorderSpacing.Top = 10
TabOrder = 0
Text = 'localhost'
end
@@ -386,12 +391,12 @@ object frmLogin: TfrmLogin
AnchorSideTop.Side = asrBottom
AnchorSideRight.Control = edPort
AnchorSideRight.Side = asrBottom
Left = 95
Height = 21
Top = 46
Width = 209
Left = 119
Height = 32
Top = 63
Width = 264
Anchors = [akTop, akLeft, akRight]
BorderSpacing.Top = 17
BorderSpacing.Top = 21
TabOrder = 2
end
object edPassword: TEdit
@@ -400,13 +405,13 @@ object frmLogin: TfrmLogin
AnchorSideTop.Side = asrBottom
AnchorSideRight.Control = edUsername
AnchorSideRight.Side = asrBottom
Left = 95
Height = 21
Top = 83
Width = 209
Left = 119
Height = 32
Top = 115
Width = 264
Anchors = [akTop, akLeft, akRight]
BorderSpacing.Top = 16
BorderSpacing.Bottom = 16
BorderSpacing.Top = 20
BorderSpacing.Bottom = 20
EchoMode = emPassword
PasswordChar = '*'
TabOrder = 3
@@ -419,13 +424,13 @@ object frmLogin: TfrmLogin
AnchorSideRight.Side = asrBottom
AnchorSideBottom.Control = edHost
AnchorSideBottom.Side = asrBottom
Left = 249
Height = 21
Top = 8
Width = 55
Left = 314
Height = 32
Top = 10
Width = 69
Anchors = [akTop, akRight, akBottom]
BorderSpacing.Left = 8
BorderSpacing.Right = 8
BorderSpacing.Left = 10
BorderSpacing.Right = 10
MaxValue = 65565
MinValue = 1024
TabOrder = 1
@@ -438,28 +443,28 @@ object frmLogin: TfrmLogin
AnchorSideTop.Control = gbConnection
AnchorSideRight.Control = Owner
AnchorSideRight.Side = asrBottom
Left = 332
Height = 92
Top = 4
Width = 143
Left = 415
Height = 115
Top = 5
Width = 179
Anchors = [akTop, akRight]
BorderSpacing.Left = 8
BorderSpacing.Right = 8
ClientHeight = 74
ClientWidth = 139
BorderSpacing.Left = 10
BorderSpacing.Right = 10
ClientHeight = 113
ClientWidth = 177
TabOrder = 2
object btnOK: TButton
AnchorSideLeft.Control = gbActions
AnchorSideTop.Control = gbActions
AnchorSideRight.Control = gbActions
AnchorSideRight.Side = asrBottom
Left = 8
Height = 25
Top = 8
Width = 123
Left = 10
Height = 31
Top = 10
Width = 157
Anchors = [akTop, akLeft, akRight]
BorderSpacing.Around = 8
BorderSpacing.InnerBorder = 4
BorderSpacing.Around = 10
BorderSpacing.InnerBorder = 5
Caption = '&OK'
Default = True
OnClick = btnOKClick
@@ -471,13 +476,13 @@ object frmLogin: TfrmLogin
AnchorSideTop.Side = asrBottom
AnchorSideRight.Control = btnOK
AnchorSideRight.Side = asrBottom
Left = 8
Height = 25
Top = 41
Width = 123
Left = 10
Height = 31
Top = 51
Width = 157
Anchors = [akTop, akLeft, akRight]
BorderSpacing.Bottom = 8
BorderSpacing.InnerBorder = 4
BorderSpacing.Bottom = 10
BorderSpacing.InnerBorder = 5
Caption = '&Cancel'
ModalResult = 2
OnClick = btnCancelClick
@@ -490,30 +495,31 @@ object frmLogin: TfrmLogin
AnchorSideTop.Side = asrBottom
AnchorSideRight.Control = gbConnection
AnchorSideRight.Side = asrBottom
Left = 8
Height = 95
Top = 146
Width = 316
Left = 10
Height = 119
Top = 182
Width = 395
Anchors = [akTop, akLeft, akRight]
BorderSpacing.Top = 4
BorderSpacing.Top = 5
Caption = 'Data files'
ClientHeight = 77
ClientWidth = 312
ClientHeight = 98
ClientWidth = 393
TabOrder = 1
object lblData: TLabel
AnchorSideLeft.Control = gbData
AnchorSideTop.Control = gbData
AnchorSideRight.Control = gbData
AnchorSideRight.Side = asrBottom
Left = 8
Height = 40
Top = 4
Width = 296
Left = 10
Height = 60
Top = 5
Width = 373
Anchors = [akTop, akLeft, akRight]
BorderSpacing.Left = 8
BorderSpacing.Top = 4
BorderSpacing.Right = 8
BorderSpacing.Left = 10
BorderSpacing.Top = 5
BorderSpacing.Right = 10
Caption = 'Select the directory containing art.mul, artidx.mul, hues.mul, tiledata.mul, animdata.mul, texmaps.mul, texidx.mul, light.mul and lightidx.mul.'
Color = clDefault
ParentColor = False
WordWrap = True
end
@@ -521,16 +527,16 @@ object frmLogin: TfrmLogin
AnchorSideLeft.Control = lblData
AnchorSideTop.Control = lblData
AnchorSideTop.Side = asrBottom
Left = 8
Height = 21
Top = 48
Width = 272
Left = 10
Height = 26
Top = 70
Width = 340
ShowHidden = False
ButtonWidth = 23
ButtonWidth = 29
NumGlyphs = 1
AutoSize = False
BorderSpacing.Top = 4
BorderSpacing.Bottom = 8
BorderSpacing.Top = 5
BorderSpacing.Bottom = 10
MaxLength = 0
TabOrder = 0
end
@@ -541,26 +547,26 @@ object frmLogin: TfrmLogin
AnchorSideTop.Side = asrBottom
AnchorSideRight.Control = gbActions
AnchorSideRight.Side = asrBottom
Left = 332
Height = 81
Top = 104
Width = 143
Left = 415
Height = 101
Top = 130
Width = 179
Anchors = [akTop, akLeft, akRight]
BorderSpacing.Top = 8
BorderSpacing.Top = 10
Caption = 'Profiles'
ClientHeight = 63
ClientWidth = 139
ClientHeight = 80
ClientWidth = 177
TabOrder = 3
object btnSaveProfile: TSpeedButton
AnchorSideTop.Control = btnDeleteProfile
AnchorSideRight.Control = btnDeleteProfile
Left = 79
Height = 22
Left = 101
Height = 28
Hint = 'Save profile'
Top = 33
Width = 22
Top = 51
Width = 28
Anchors = [akTop, akRight]
BorderSpacing.Right = 8
BorderSpacing.Right = 10
Glyph.Data = {
36040000424D3604000000000000360000002800000010000000100000000100
2000000000000004000064000000640000000000000000000000BA6A36FFB969
@@ -597,7 +603,6 @@ object frmLogin: TfrmLogin
36FFBC6B36FFBC6B36FFBC6B36FFBB6B36FFBB6B36FFBB6A36FFBB6A36FFBC6C
39FFBD6E3BFFBB6D3AFFBB6B38FFBB703EFF0000000000000000
}
NumGlyphs = 0
OnClick = btnSaveProfileClick
ShowCaption = False
ShowHint = True
@@ -608,14 +613,14 @@ object frmLogin: TfrmLogin
AnchorSideTop.Side = asrBottom
AnchorSideRight.Control = cbProfile
AnchorSideRight.Side = asrBottom
Left = 109
Height = 22
Left = 139
Height = 28
Hint = 'Delete profile'
Top = 33
Width = 22
Top = 51
Width = 28
Anchors = [akTop, akRight]
BorderSpacing.Top = 8
BorderSpacing.Bottom = 8
BorderSpacing.Top = 10
BorderSpacing.Bottom = 10
Glyph.Data = {
36040000424D3604000000000000360000002800000010000000100000000100
2000000000000004000064000000640000000000000000000000000000000000
@@ -652,7 +657,6 @@ object frmLogin: TfrmLogin
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000
}
NumGlyphs = 0
OnClick = btnDeleteProfileClick
ShowCaption = False
ShowHint = True
@@ -663,15 +667,15 @@ object frmLogin: TfrmLogin
AnchorSideTop.Control = gbProfiles
AnchorSideRight.Control = gbProfiles
AnchorSideRight.Side = asrBottom
Left = 8
Height = 21
Top = 4
Width = 123
Left = 10
Height = 36
Top = 5
Width = 157
Anchors = [akTop, akLeft, akRight]
BorderSpacing.Left = 8
BorderSpacing.Top = 4
BorderSpacing.Right = 8
ItemHeight = 13
BorderSpacing.Left = 10
BorderSpacing.Top = 5
BorderSpacing.Right = 10
ItemHeight = 0
OnChange = cbProfileChange
Style = csDropDownList
TabOrder = 0