scale gutter icons and more scaling tweaks

This commit is contained in:
Basile Burg 2018-01-20 04:07:47 +01:00
parent bc581493de
commit 4cd7b1342e
30 changed files with 105 additions and 3041 deletions

View File

@ -84,5 +84,5 @@ object CurrentProject: TCENativeProject
'cesetup.d' 'cesetup.d'
) )
ConfigurationIndex = 2 ConfigurationIndex = 2
version = '3.6.0-alpha.1' version = '3.6.0-alpha.2'
end end

View File

@ -1 +1 @@
v3.6.0-alpha.1 v3.6.0-alpha.2

Binary file not shown.

Before

Width:  |  Height:  |  Size: 283 B

After

Width:  |  Height:  |  Size: 321 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 287 B

After

Width:  |  Height:  |  Size: 323 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 331 B

After

Width:  |  Height:  |  Size: 413 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 287 B

After

Width:  |  Height:  |  Size: 320 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 494 B

After

Width:  |  Height:  |  Size: 920 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 425 B

After

Width:  |  Height:  |  Size: 835 B

BIN
icons/other/break_set24.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
icons/other/break_set32.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
icons/other/indent_less.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 542 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 720 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
icons/other/indent_more.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 611 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 795 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 415 B

After

Width:  |  Height:  |  Size: 597 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 723 B

After

Width:  |  Height:  |  Size: 998 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 577 B

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

View File

@ -13,7 +13,7 @@
<DpiAware Value="True/PM"/> <DpiAware Value="True/PM"/>
</XPManifest> </XPManifest>
<Icon Value="0"/> <Icon Value="0"/>
<Resources Count="354"> <Resources Count="364">
<Resource_0 FileName="..\icons\arrow\arrow_up.png" Type="RCDATA" ResourceName="ARROW_UP"/> <Resource_0 FileName="..\icons\arrow\arrow_up.png" Type="RCDATA" ResourceName="ARROW_UP"/>
<Resource_1 FileName="..\icons\arrow\arrow_down.png" Type="RCDATA" ResourceName="ARROW_DOWN"/> <Resource_1 FileName="..\icons\arrow\arrow_down.png" Type="RCDATA" ResourceName="ARROW_DOWN"/>
<Resource_2 FileName="..\icons\arrow\arrow_divide.png" Type="RCDATA" ResourceName="ARROW_DIVIDE"/> <Resource_2 FileName="..\icons\arrow\arrow_divide.png" Type="RCDATA" ResourceName="ARROW_DIVIDE"/>
@ -368,6 +368,16 @@
<Resource_351 FileName="../icons/other/cross.png" Type="RCDATA" ResourceName="CROSS"/> <Resource_351 FileName="../icons/other/cross.png" Type="RCDATA" ResourceName="CROSS"/>
<Resource_352 FileName="../icons/other/cross24.png" Type="RCDATA" ResourceName="CROSS24"/> <Resource_352 FileName="../icons/other/cross24.png" Type="RCDATA" ResourceName="CROSS24"/>
<Resource_353 FileName="../icons/other/cross32.png" Type="RCDATA" ResourceName="CROSS32"/> <Resource_353 FileName="../icons/other/cross32.png" Type="RCDATA" ResourceName="CROSS32"/>
<Resource_354 FileName="../icons/other/break_reached32.png" Type="RCDATA" ResourceName="BREAK_REACHED32"/>
<Resource_355 FileName="../icons/other/break_reached24.png" Type="RCDATA" ResourceName="BREAK_REACHED24"/>
<Resource_356 FileName="../icons/other/break_set32.png" Type="RCDATA" ResourceName="BREAK_SET32"/>
<Resource_357 FileName="../icons/other/break_set24.png" Type="RCDATA" ResourceName="BREAK_SET24"/>
<Resource_358 FileName="../icons/other/indent_more.png" Type="RCDATA" ResourceName="INDENT_MORE"/>
<Resource_359 FileName="../icons/other/indent_more24.png" Type="RCDATA" ResourceName="INDENT_MORE24"/>
<Resource_360 FileName="../icons/other/indent_more32.png" Type="RCDATA" ResourceName="INDENT_MORE32"/>
<Resource_361 FileName="../icons/other/indent_less32.png" Type="RCDATA" ResourceName="INDENT_LESS32"/>
<Resource_362 FileName="../icons/other/indent_less24.png" Type="RCDATA" ResourceName="INDENT_LESS24"/>
<Resource_363 FileName="../icons/other/indent_less.png" Type="RCDATA" ResourceName="INDENT_LESS"/>
</Resources> </Resources>
</General> </General>
<i18n> <i18n>

View File

@ -37,15 +37,15 @@ inherited CEGdbWidget: TCEGdbWidget
Width = 517 Width = 517
Align = alClient Align = alClient
Caption = 'CPU' Caption = 'CPU'
ClientHeight = 162 ClientHeight = 161
ClientWidth = 515 ClientWidth = 513
TabOrder = 0 TabOrder = 0
object cpuViewer: TTIPropertyGrid object cpuViewer: TTIPropertyGrid
Left = 0 Left = 0
Height = 162 Height = 161
Hint = 'cpu registers' Hint = 'cpu registers'
Top = 0 Top = 0
Width = 515 Width = 513
Align = alClient Align = alClient
CheckboxForBoolean = True CheckboxForBoolean = True
DefaultValueFont.Color = clWindowText DefaultValueFont.Color = clWindowText
@ -82,8 +82,8 @@ inherited CEGdbWidget: TCEGdbWidget
ClientWidth = 511 ClientWidth = 511
object lstVariables: TListView object lstVariables: TListView
Left = 2 Left = 2
Height = 136 Height = 132
Top = 27 Top = 31
Width = 507 Width = 507
Align = alClient Align = alClient
AutoWidthLastColumn = True AutoWidthLastColumn = True
@ -109,7 +109,7 @@ inherited CEGdbWidget: TCEGdbWidget
end end
object varListFlt: TListViewFilterEdit object varListFlt: TListViewFilterEdit
Left = 2 Left = 2
Height = 23 Height = 27
Hint = 'locate variables' Hint = 'locate variables'
Top = 2 Top = 2
Width = 507 Width = 507
@ -311,9 +311,9 @@ inherited CEGdbWidget: TCEGdbWidget
ClientWidth = 511 ClientWidth = 511
object dbgeeOptsEd: TTIPropertyGrid object dbgeeOptsEd: TTIPropertyGrid
Left = 2 Left = 2
Height = 165 Height = 161
Top = 2 Top = 2
Width = 509 Width = 507
Align = alClient Align = alClient
BorderSpacing.Around = 2 BorderSpacing.Around = 2
CheckboxForBoolean = True CheckboxForBoolean = True

View File

@ -1195,6 +1195,7 @@ begin
TCEListViewCopyMenu.create(lstThreads); TCEListViewCopyMenu.create(lstThreads);
cpuViewer.DefaultItemHeight := scaleY(22, 96); cpuViewer.DefaultItemHeight := scaleY(22, 96);
dbgeeOptsEd.DefaultItemHeight:= cpuViewer.DefaultItemHeight;
Case GetIconScaledSize of Case GetIconScaledSize of
iss16: iss16:
@ -1247,7 +1248,6 @@ var
mnu: ICEMainMenu; mnu: ICEMainMenu;
itm: TMenuItem; itm: TMenuItem;
bmp: TBitmap; bmp: TBitmap;
i: integer;
begin begin
mnu := getMainMenu; mnu := getMainMenu;
if not assigned(mnu) then if not assigned(mnu) then
@ -1270,8 +1270,7 @@ begin
fMenu.Add(itm); fMenu.Add(itm);
btnStart.toBitmap(bmp); btnStart.toBitmap(bmp);
itm.Bitmap.Assign(bmp); itm.Bitmap.Assign(bmp);
i := fMenu.GetImageList.Add(bmp, nil); itm.ImageIndex:= fMenu.GetImageList.Add(bmp, nil);
itm.ImageIndex:= i;
itm := TMenuItem.Create(fMenu); itm := TMenuItem.Create(fMenu);
itm.ShortCut:=fOptions.shortcuts.stop; itm.ShortCut:=fOptions.shortcuts.stop;
@ -1281,8 +1280,7 @@ begin
fMenu.Add(itm); fMenu.Add(itm);
btnStop.toBitmap(bmp); btnStop.toBitmap(bmp);
itm.Bitmap.Assign(bmp); itm.Bitmap.Assign(bmp);
i := fMenu.GetImageList.Add(bmp, nil); itm.ImageIndex:= fMenu.GetImageList.Add(bmp, nil);
itm.ImageIndex:= i;
itm := TMenuItem.Create(fMenu); itm := TMenuItem.Create(fMenu);
itm.ShortCut:=fOptions.shortcuts.pause; itm.ShortCut:=fOptions.shortcuts.pause;
@ -1292,8 +1290,7 @@ begin
fMenu.Add(itm); fMenu.Add(itm);
btnPause.toBitmap(bmp); btnPause.toBitmap(bmp);
itm.Bitmap.Assign(bmp); itm.Bitmap.Assign(bmp);
i := fMenu.GetImageList.Add(bmp, nil); itm.ImageIndex:= fMenu.GetImageList.Add(bmp, nil);
itm.ImageIndex:= i;
itm := TMenuItem.Create(fMenu); itm := TMenuItem.Create(fMenu);
itm.ShortCut:=fOptions.shortcuts.continue; itm.ShortCut:=fOptions.shortcuts.continue;
@ -1303,8 +1300,7 @@ begin
fMenu.Add(itm); fMenu.Add(itm);
btnContinue.toBitmap(bmp); btnContinue.toBitmap(bmp);
itm.Bitmap.Assign(bmp); itm.Bitmap.Assign(bmp);
i := fMenu.GetImageList.Add(bmp, nil); itm.ImageIndex:= fMenu.GetImageList.Add(bmp, nil);
itm.ImageIndex:= i;
itm := TMenuItem.Create(fMenu); itm := TMenuItem.Create(fMenu);
itm.ShortCut:=fOptions.shortcuts.step; itm.ShortCut:=fOptions.shortcuts.step;
@ -1314,8 +1310,7 @@ begin
fMenu.Add(itm); fMenu.Add(itm);
btnNext.toBitmap(bmp); btnNext.toBitmap(bmp);
itm.Bitmap.Assign(bmp); itm.Bitmap.Assign(bmp);
i := fMenu.GetImageList.Add(bmp, nil); itm.ImageIndex:= fMenu.GetImageList.Add(bmp, nil);
itm.ImageIndex:= i;
itm := TMenuItem.Create(fMenu); itm := TMenuItem.Create(fMenu);
itm.ShortCut:=fOptions.shortcuts.stepOver; itm.ShortCut:=fOptions.shortcuts.stepOver;
@ -1325,8 +1320,7 @@ begin
fMenu.Add(itm); fMenu.Add(itm);
btnOver.toBitmap(bmp); btnOver.toBitmap(bmp);
itm.Bitmap.Assign(bmp); itm.Bitmap.Assign(bmp);
i := fMenu.GetImageList.Add(bmp, nil); itm.ImageIndex:= fMenu.GetImageList.Add(bmp, nil);
itm.ImageIndex:= i;
itm := TMenuItem.Create(fMenu); itm := TMenuItem.Create(fMenu);
itm.Caption:= '-'; itm.Caption:= '-';
@ -1341,8 +1335,7 @@ begin
fMenu.Add(itm); fMenu.Add(itm);
btnReg.toBitmap(bmp); btnReg.toBitmap(bmp);
itm.Bitmap.Assign(bmp); itm.Bitmap.Assign(bmp);
i := fMenu.GetImageList.Add(bmp, nil); itm.ImageIndex:= fMenu.GetImageList.Add(bmp, nil);
itm.ImageIndex:= i;
itm := TMenuItem.Create(fMenu); itm := TMenuItem.Create(fMenu);
itm.ShortCut:=fOptions.shortcuts.updateStack; itm.ShortCut:=fOptions.shortcuts.updateStack;
@ -1352,8 +1345,7 @@ begin
fMenu.Add(itm); fMenu.Add(itm);
btnStack.toBitmap(bmp); btnStack.toBitmap(bmp);
itm.Bitmap.Assign(bmp); itm.Bitmap.Assign(bmp);
i := fMenu.GetImageList.Add(bmp, nil); itm.ImageIndex:= fMenu.GetImageList.Add(bmp, nil);
itm.ImageIndex:= i;
itm := TMenuItem.Create(fMenu); itm := TMenuItem.Create(fMenu);
itm.ShortCut:=fOptions.shortcuts.updateVariables; itm.ShortCut:=fOptions.shortcuts.updateVariables;
@ -1363,8 +1355,7 @@ begin
fMenu.Add(itm); fMenu.Add(itm);
btnVariables.toBitmap(bmp); btnVariables.toBitmap(bmp);
itm.Bitmap.Assign(bmp); itm.Bitmap.Assign(bmp);
i := fMenu.GetImageList.Add(bmp, nil); itm.ImageIndex:= fMenu.GetImageList.Add(bmp, nil);
itm.ImageIndex:= i;
bmp.Free; bmp.Free;
end; end;

View File

@ -61,13 +61,13 @@ begin
Inherited create(TheOwner); Inherited create(TheOwner);
Align := alTop; Align := alTop;
height := ScaleY(26, 96); height := ScaleY(26, 96);
width := ScaleX(200, 96); width := ScaleX(220, 96);
// //
fLabel := TLabel.Create(self); fLabel := TLabel.Create(self);
fLabel.AutoSize:=false; fLabel.AutoSize:=false;
fLabel.Parent := self; fLabel.Parent := self;
fLabel.Align:= alLeft; fLabel.Align:= alLeft;
fLabel.Width:= ScaleX(70, 96); fLabel.Width:= ScaleX(90, 96);
fLabel.BorderSpacing.Around := 2; fLabel.BorderSpacing.Around := 2;
fLabel.Hint:= description; fLabel.Hint:= description;
fLabel.ShowHint:=true; fLabel.ShowHint:=true;
@ -251,7 +251,7 @@ begin
itm.Parent := boxTools; itm.Parent := boxTools;
itm.ReAlign; itm.ReAlign;
// //
Height := boxTools.ControlCount * ScaleY(30, 96) + GroupBox1.Height + ScaleY(12, 96); Height := boxTools.ControlCount * ScaleY(30, 96) + GroupBox1.Height + ScaleY(20, 96);
Realign; Realign;
end; end;

File diff suppressed because it is too large Load Diff

View File

@ -1413,6 +1413,14 @@ begin
actProjRun.ImageIndex:= i; actProjRun.ImageIndex:= i;
actProjRunWithArgs.ImageIndex:= i; actProjRunWithArgs.ImageIndex:= i;
i := loadIcon('LAYOUT');
mnuLayout.ImageIndex:= i;
i := LoadIcon('INDENT_MORE');
actEdIndent.ImageIndex:= i;
i := LoadIcon('INDENT_LESS');
actEdUnIndent.ImageIndex:= i;
end; end;
procedure TCEMainForm.InitWidgets; procedure TCEMainForm.InitWidgets;
@ -1420,6 +1428,7 @@ var
widg: TCEWidget; widg: TCEWidget;
act: TAction; act: TAction;
itm: TMenuItem; itm: TMenuItem;
idx: integer;
begin begin
fWidgList := TCEWidgetList.Create; fWidgList := TCEWidgetList.Create;
fMesgWidg := TCEMessagesWidget.create(self); fMesgWidg := TCEMessagesWidget.create(self);
@ -1468,6 +1477,12 @@ begin
fWidgList.sort(@CompareWidgCaption); fWidgList.sort(@CompareWidgCaption);
case GetIconScaledSize of
iss16: idx := fImages.AddResourceName(HINSTANCE, 'APPLICATION');
iss24: idx := fImages.AddResourceName(HINSTANCE, 'APPLICATION24');
iss32: idx := fImages.AddResourceName(HINSTANCE, 'APPLICATION32');
end;
for widg in fWidgList do for widg in fWidgList do
begin begin
act := TAction.Create(self); act := TAction.Create(self);
@ -1475,7 +1490,7 @@ begin
act.Caption := widg.Caption; act.Caption := widg.Caption;
act.OnExecute := @widgetShowFromAction; act.OnExecute := @widgetShowFromAction;
act.Tag := ptrInt(widg); act.Tag := ptrInt(widg);
act.ImageIndex := 25; act.ImageIndex := idx;
act.OnUpdate:= @updateWidgetMenuEntry; act.OnUpdate:= @updateWidgetMenuEntry;
itm := TMenuItem.Create(self); itm := TMenuItem.Create(self);
itm.Action := act; itm.Action := act;

View File

@ -19,7 +19,7 @@ inherited CEProjectGroupWidget: TCEProjectGroupWidget
ClientWidth = 328 ClientWidth = 328
object lstProj: TListView[0] object lstProj: TListView[0]
Left = 4 Left = 4
Height = 117 Height = 126
Top = 4 Top = 4
Width = 320 Width = 320
Align = alClient Align = alClient
@ -29,22 +29,22 @@ inherited CEProjectGroupWidget: TCEProjectGroupWidget
item item
AutoSize = True AutoSize = True
Caption = 'Name' Caption = 'Name'
Width = 68 Width = 49
end end
item item
AutoSize = True AutoSize = True
Caption = 'Type' Caption = 'Type'
Width = 56 Width = 40
end end
item item
AutoSize = True AutoSize = True
Caption = 'Async' Caption = 'Async'
Width = 70 Width = 49
end end
item item
AutoSize = True AutoSize = True
Caption = 'Configuration' Caption = 'Configuration'
Width = 147 Width = 180
end> end>
GridLines = True GridLines = True
ReadOnly = True ReadOnly = True
@ -56,19 +56,19 @@ inherited CEProjectGroupWidget: TCEProjectGroupWidget
end end
object Panel2: TPanel[1] object Panel2: TPanel[1]
Left = 4 Left = 4
Height = 32 Height = 23
Top = 125 Top = 134
Width = 320 Width = 320
Align = alBottom Align = alBottom
AutoSize = True AutoSize = True
BorderSpacing.Around = 4 BorderSpacing.Around = 4
BevelOuter = bvNone BevelOuter = bvNone
ClientHeight = 32 ClientHeight = 23
ClientWidth = 320 ClientWidth = 320
TabOrder = 1 TabOrder = 1
object btnFreeFocus: TSpeedButton object btnFreeFocus: TSpeedButton
Left = 312 Left = 312
Height = 32 Height = 23
Hint = 'Put the focus on the ungrouped project' Hint = 'Put the focus on the ungrouped project'
Top = 0 Top = 0
Width = 4 Width = 4
@ -80,7 +80,7 @@ inherited CEProjectGroupWidget: TCEProjectGroupWidget
end end
object StaticText1: TStaticText object StaticText1: TStaticText
Left = 2 Left = 2
Height = 28 Height = 19
Top = 2 Top = 2
Width = 308 Width = 308
Align = alClient Align = alClient
@ -91,7 +91,7 @@ inherited CEProjectGroupWidget: TCEProjectGroupWidget
end end
object btnAddUnfocused: TSpeedButton object btnAddUnfocused: TSpeedButton
Left = 316 Left = 316
Height = 32 Height = 23
Hint = 'Put the ungrouped project in the group' Hint = 'Put the ungrouped project in the group'
Top = 0 Top = 0
Width = 4 Width = 4

View File

@ -811,6 +811,8 @@ end;
{$REGION Standard Obj and Comp -------------------------------------------------} {$REGION Standard Obj and Comp -------------------------------------------------}
constructor TCESynMemo.Create(aOwner: TComponent); constructor TCESynMemo.Create(aOwner: TComponent);
var
z: TIconScaledSize;
begin begin
inherited; inherited;
@ -902,7 +904,15 @@ begin
fModified := false; fModified := false;
TextBuffer.AddNotifyHandler(senrUndoRedoAdded, @changeNotify); TextBuffer.AddNotifyHandler(senrUndoRedoAdded, @changeNotify);
Gutter.MarksPart.AutoSize:=false;
Gutter.MarksPart.Width := ScaleX(20,96);
fImages := TImageList.Create(self); fImages := TImageList.Create(self);
z := GetIconScaledSize;
case z of
iss16:
begin
fImages.Width:= 16;
fImages.Height:= 16;
fImages.AddResourceName(HINSTANCE, 'BREAK_SET'); fImages.AddResourceName(HINSTANCE, 'BREAK_SET');
fImages.AddResourceName(HINSTANCE, 'BULLET_GREEN'); fImages.AddResourceName(HINSTANCE, 'BULLET_GREEN');
fImages.AddResourceName(HINSTANCE, 'BULLET_BLACK'); fImages.AddResourceName(HINSTANCE, 'BULLET_BLACK');
@ -910,6 +920,32 @@ begin
fImages.AddResourceName(HINSTANCE, 'STEP'); fImages.AddResourceName(HINSTANCE, 'STEP');
fImages.AddResourceName(HINSTANCE, 'CAMERA_GO'); fImages.AddResourceName(HINSTANCE, 'CAMERA_GO');
fImages.AddResourceName(HINSTANCE, 'WARNING'); fImages.AddResourceName(HINSTANCE, 'WARNING');
end;
iss24:
begin
fImages.Width:= 24;
fImages.Height:= 24;
fImages.AddResourceName(HINSTANCE, 'BREAK_SET24');
fImages.AddResourceName(HINSTANCE, 'BULLET_GREEN24');
fImages.AddResourceName(HINSTANCE, 'BULLET_BLACK24');
fImages.AddResourceName(HINSTANCE, 'BREAK_REACHED24');
fImages.AddResourceName(HINSTANCE, 'STEP24');
fImages.AddResourceName(HINSTANCE, 'CAMERA_GO24');
fImages.AddResourceName(HINSTANCE, 'WARNING24');
end;
iss32:
begin
fImages.Width:= 32;
fImages.Height:= 32;
fImages.AddResourceName(HINSTANCE, 'BREAK_SET32');
fImages.AddResourceName(HINSTANCE, 'BULLET_GREEN32');
fImages.AddResourceName(HINSTANCE, 'BULLET_BLACK32');
fImages.AddResourceName(HINSTANCE, 'BREAK_REACHED32');
fImages.AddResourceName(HINSTANCE, 'STEP32');
fImages.AddResourceName(HINSTANCE, 'CAMERA_GO32');
fImages.AddResourceName(HINSTANCE, 'WARNING32');
end;
end;
fPositions := TCESynMemoPositions.create(self); fPositions := TCESynMemoPositions.create(self);
fMultiDocSubject := TCEMultiDocSubject.create; fMultiDocSubject := TCEMultiDocSubject.create;