💄 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
+74 -76
View File
@@ -1,27 +1,26 @@
object frmFilter: TfrmFilter
Left = 290
Height = 492
Height = 615
Top = 171
Width = 232
Width = 290
ActiveControl = rgFilterType.RadioButton0
BorderIcons = [biSystemMenu, biMinimize]
BorderStyle = bsToolWindow
Caption = 'Filter'
ClientHeight = 492
ClientWidth = 232
Font.Height = -11
ClientHeight = 615
ClientWidth = 290
Font.Height = -14
OnCreate = FormCreate
OnDestroy = FormDestroy
OnShow = FormShow
LCLVersion = '0.9.29'
object rgFilterType: TRadioGroup
Left = 4
Height = 40
Top = 4
Width = 224
Left = 5
Height = 50
Top = 5
Width = 280
Align = alTop
AutoFill = True
BorderSpacing.Around = 4
BorderSpacing.Around = 5
Caption = 'Filter rule'
ChildSizing.LeftRightSpacing = 6
ChildSizing.TopBottomSpacing = 6
@@ -31,8 +30,8 @@ object frmFilter: TfrmFilter
ChildSizing.ShrinkVertical = crsScaleChilds
ChildSizing.Layout = cclLeftToRightThenTopToBottom
ChildSizing.ControlsPerLine = 2
ClientHeight = 26
ClientWidth = 222
ClientHeight = 29
ClientWidth = 278
Columns = 2
ItemIndex = 0
Items.Strings = (
@@ -43,15 +42,15 @@ object frmFilter: TfrmFilter
TabOrder = 0
end
object GroupBox1: TGroupBox
Left = 4
Height = 259
Top = 48
Width = 224
Left = 5
Height = 324
Top = 60
Width = 280
Align = alClient
BorderSpacing.Around = 4
BorderSpacing.Around = 5
Caption = 'Tile filter'
ClientHeight = 245
ClientWidth = 222
ClientHeight = 303
ClientWidth = 278
TabOrder = 1
object Label1: TLabel
AnchorSideLeft.Control = GroupBox1
@@ -59,13 +58,14 @@ object frmFilter: TfrmFilter
AnchorSideTop.Side = asrBottom
AnchorSideRight.Control = GroupBox1
AnchorSideRight.Side = asrBottom
Left = 4
Height = 30
Top = 30
Width = 214
Left = 5
Height = 40
Top = 32
Width = 268
Anchors = [akTop, akLeft, akRight]
BorderSpacing.Around = 4
BorderSpacing.Around = 5
Caption = 'Drag and Drop static tiles from the tile list on this list to add them to the filter.'
Color = clDefault
ParentColor = False
WordWrap = True
end
@@ -76,13 +76,12 @@ object frmFilter: TfrmFilter
AnchorSideRight.Side = asrCenter
AnchorSideBottom.Control = btnDelete
AnchorSideBottom.Side = asrBottom
Left = 30
Height = 22
Left = 38
Height = 28
Hint = 'Clear'
Top = 219
Width = 22
Top = 270
Width = 28
Anchors = [akLeft, akBottom]
Color = clBtnFace
Glyph.Data = {
36040000424D3604000000000000360000002800000010000000100000000100
20000000000000040000640000006400000000000000000000003ADCFE004800
@@ -119,7 +118,6 @@ object frmFilter: TfrmFilter
DE00D86FDF00D86FDF00E0A223004AC6080000000000580000005870DF000C70
DF000000000000000000000000002070DF000000000000000000
}
NumGlyphs = 0
OnClick = btnClearClick
ShowHint = True
ParentShowHint = False
@@ -128,14 +126,13 @@ object frmFilter: TfrmFilter
AnchorSideLeft.Control = GroupBox1
AnchorSideBottom.Control = GroupBox1
AnchorSideBottom.Side = asrBottom
Left = 4
Height = 22
Left = 5
Height = 28
Hint = 'Delete'
Top = 219
Width = 22
Top = 270
Width = 28
Anchors = [akLeft, akBottom]
BorderSpacing.Around = 4
Color = clBtnFace
BorderSpacing.Around = 5
Glyph.Data = {
36040000424D3604000000000000360000002800000010000000100000000100
20000000000000040000640000006400000000000000000000004F91AB005588
@@ -172,7 +169,6 @@ object frmFilter: TfrmFilter
DE0068B0E00068B0E0000E049300F8049500F2009500070102000F049500F804
0200F2000200080104000E040200F8040400F200040009010500
}
NumGlyphs = 0
OnClick = btnDeleteClick
ShowHint = True
ParentShowHint = False
@@ -186,13 +182,13 @@ object frmFilter: TfrmFilter
AnchorSideRight.Side = asrBottom
AnchorSideBottom.Control = btnDelete
Cursor = 63
Left = 4
Height = 151
Top = 64
Width = 214
Left = 5
Height = 188
Top = 77
Width = 268
Anchors = [akTop, akLeft, akRight, akBottom]
BorderSpacing.Around = 4
DefaultNodeHeight = 44
BorderSpacing.Around = 5
DefaultNodeHeight = 55
DragType = dtVCL
Header.AutoSizeIndex = 0
Header.Columns = <
@@ -203,14 +199,15 @@ object frmFilter: TfrmFilter
item
Position = 1
Text = 'Tile'
Width = 44
Width = 55
end
item
Position = 2
Text = 'Name'
Width = 100
Width = 125
end>
Header.DefaultHeight = 17
Header.DefaultHeight = 21
Header.Height = 36
Header.Options = [hoColumnResize, hoDrag, hoVisible]
Header.ParentFont = True
Header.Style = hsFlatButtons
@@ -224,63 +221,64 @@ object frmFilter: TfrmFilter
object cbTileFilter: TCheckBox
AnchorSideLeft.Control = GroupBox1
AnchorSideTop.Control = GroupBox1
Left = 4
Left = 5
Height = 22
Top = 4
Width = 85
BorderSpacing.Around = 4
Top = 5
Width = 101
BorderSpacing.Around = 5
Caption = 'Filter active'
OnChange = cbTileFilterChange
TabOrder = 1
end
end
object GroupBox2: TGroupBox
Left = 4
Height = 168
Top = 320
Width = 224
Left = 5
Height = 210
Top = 400
Width = 280
Align = alBottom
BorderSpacing.Around = 4
BorderSpacing.Around = 5
Caption = 'Hue filter'
ClientHeight = 154
ClientWidth = 222
ClientHeight = 189
ClientWidth = 278
TabOrder = 2
object cbHueFilter: TCheckBox
Left = 4
Left = 5
Height = 22
Top = 4
Width = 214
Top = 5
Width = 268
Align = alTop
BorderSpacing.Around = 4
BorderSpacing.Around = 5
Caption = 'Filter active'
OnChange = cbHueFilterChange
TabOrder = 0
end
object vdtHues: TLazVirtualDrawTree
Cursor = 63
Left = 4
Height = 120
Top = 30
Width = 214
Left = 5
Height = 152
Top = 32
Width = 268
Align = alClient
BorderSpacing.Around = 4
BorderSpacing.Around = 5
Header.AutoSizeIndex = 2
Header.Columns = <
item
Position = 0
Width = 20
Width = 25
end
item
Position = 1
Text = 'Hue'
Width = 38
Width = 48
end
item
Position = 2
Text = 'Name'
Width = 154
Width = 193
end>
Header.DefaultHeight = 17
Header.DefaultHeight = 21
Header.Height = 36
Header.Options = [hoAutoResize, hoColumnResize, hoDrag, hoVisible]
Header.ParentFont = True
Header.Style = hsFlatButtons
@@ -296,15 +294,15 @@ object frmFilter: TfrmFilter
object Splitter1: TSplitter
Cursor = crVSplit
Left = 0
Height = 5
Top = 311
Width = 232
Height = 6
Top = 389
Width = 290
Align = alBottom
ResizeAnchor = akBottom
end
object pmHues: TPopupMenu
left = 148
top = 404
Left = 185
Top = 505
object mnuCheckHues: TMenuItem
Caption = 'Check all hues'
OnClick = mnuCheckHuesClick