IDE: New restore_default and restore_defaults icons. Use more icons in Options GUI. Issue #33997, icon patch from FTurtle.

git-svn-id: trunk@58807 -
This commit is contained in:
juha 2018-08-31 10:09:04 +00:00
parent f6dcfb9e4f
commit 59d096e29f
18 changed files with 44 additions and 21 deletions

8
.gitattributes vendored
View File

@ -7158,11 +7158,15 @@ images/actions/laz_refresh.png -text svneol=unset#image/png
images/actions/laz_save.png -text svneol=unset#image/png
images/actions/laz_save_150.png -text
images/actions/laz_save_200.png -text
images/actions/laz_set_color_default.png -text svneol=unset#image/png
images/actions/laz_set_colors_default.png -text svneol=unset#image/png
images/actions/laz_tick.png -text svneol=unset#image/png
images/actions/laz_wand.png -text svneol=unset#image/png
images/actions/preferences.png -text
images/actions/restore_default.png -text svneol=unset#image/png
images/actions/restore_default_150.png -text svneol=unset#image/png
images/actions/restore_default_200.png -text svneol=unset#image/png
images/actions/restore_defaults.png -text svneol=unset#image/png
images/actions/restore_defaults_150.png -text svneol=unset#image/png
images/actions/restore_defaults_200.png -text svneol=unset#image/png
images/bookmark.res -text
images/bookmark.sh svneol=native#text/plain
images/bookmark_images.bat svneol=native#text/plain

View File

@ -166,6 +166,7 @@ begin
AddPageButton.Caption := lisBtnDlgAdd;
IDEImages.AssignImage(AddPageButton, 'laz_add');
RestoreButton.Caption := lisCmpRestoreDefaults;
IDEImages.AssignImage(RestoreButton, 'restore_defaults');
ImportDividerBevel.Caption := lisExportImport;
IDEImages.AssignImage(ImportButton, 'laz_open');
ImportButton.Caption := lisDlgImport;

View File

@ -1469,9 +1469,9 @@ begin
LanguageButton.Hint := dlgLang;
ColorSchemeButton.Hint := dlgClrScheme;
FileExtensionsComboBox.hint := dlgFileExts;
SetAttributeToDefaultButton.ImageIndex := IDEImages.LoadImage('laz_set_color_default');
SetAttributeToDefaultButton.ImageIndex := IDEImages.LoadImage('restore_default');
SetAttributeToDefaultButton.Hint := dlgSetElementDefault;
SetAllAttributesToDefaultButton.ImageIndex := IDEImages.LoadImage('laz_set_colors_default');
SetAllAttributesToDefaultButton.ImageIndex := IDEImages.LoadImage('restore_defaults');
SetAllAttributesToDefaultButton.Hint := dlgSetAllElementDefault;
btnExport.ImageIndex := IDEImages.LoadImage('laz_save');
btnExport.Hint := lisExport;

View File

@ -34,7 +34,7 @@ uses
// LazControls
DividerBevel,
// IdeIntf
IDEOptionsIntf, IDEOptEditorIntf,
IDEOptionsIntf, IDEOptEditorIntf, IDEImagesIntf,
// IDE
LazarusIDEStrConsts, EnvironmentOpts, EditorToolbarStatic, ToolbarConfig;
@ -110,7 +110,9 @@ begin
cbCoolBarVisible.Caption := lisEditorToolbarVisible;
lblpos.Caption := lisPosition;
bDefaultToolbar.Caption := lisCmpRestoreDefaults;
IDEImages.AssignImage(bDefaultToolbar, 'restore_defaults');
bConfig.Caption := lisCoolbarConfigure;
IDEImages.AssignImage(bConfig, 'preferences');
end;
procedure TEditorToolbarOptionsFrame.ReadSettings(AOptions: TAbstractIDEOptions);

View File

@ -33,11 +33,9 @@ object FpDocOptionsFrame: TFpDocOptionsFrame
BorderSpacing.Around = 6
ItemHeight = 0
OnSelectionChange = LazDocListBoxSelectionChange
ScrollWidth = 458
TabOrder = 0
TopIndex = -1
end
object LazDocAddPathButton: TButton
object LazDocAddPathButton: TBitBtn
AnchorSideLeft.Control = LazDocPathsGroupBox
AnchorSideTop.Control = LazDocListBox
AnchorSideTop.Side = asrBottom
@ -52,7 +50,7 @@ object FpDocOptionsFrame: TFpDocOptionsFrame
OnClick = LazDocAddPathButtonClick
TabOrder = 1
end
object LazDocDeletePathButton: TButton
object LazDocDeletePathButton: TBitBtn
AnchorSideLeft.Control = LazDocAddPathButton
AnchorSideLeft.Side = asrBottom
AnchorSideTop.Control = LazDocAddPathButton

View File

@ -27,11 +27,11 @@ interface
uses
SysUtils,
// LCL
Dialogs, StdCtrls, EditBtn,
Dialogs, StdCtrls, EditBtn, Buttons,
// LazUtils
LazStringUtils,
// IdeIntf
IDEOptionsIntf, IDEOptEditorIntf,
IDEOptionsIntf, IDEOptEditorIntf, IDEImagesIntf,
// IDE
EnvironmentOpts, LazarusIDEStrConsts;
@ -40,8 +40,8 @@ type
{ TFpDocOptionsFrame }
TFpDocOptionsFrame = class(TAbstractIDEOptionsEditor)
LazDocAddPathButton: TButton;
LazDocDeletePathButton: TButton;
LazDocAddPathButton: TBitBtn;
LazDocDeletePathButton: TBitBtn;
LazDocListBox: TListBox;
LazDocPathEdit: TDirectoryEdit;
LazDocPathsGroupBox: TGroupBox;
@ -73,7 +73,9 @@ procedure TFpDocOptionsFrame.Setup(ADialog: TAbstractOptionsEditorDialog);
begin
LazDocPathsGroupBox.Caption := lisCodeHelpGroupBox;
LazDocAddPathButton.Caption := lisCodeHelpAddPathButton;
IDEImages.AssignImage(LazDocAddPathButton, 'laz_add');
LazDocDeletePathButton.Caption := lisCodeHelpDeletePathButton;
IDEImages.AssignImage(LazDocDeletePathButton, 'laz_delete');
LazDocPathEdit.Clear;
end;

View File

@ -34,7 +34,7 @@ uses
// LazControls
DividerBevel,
// IDEIntf
IDEOptionsIntf, IDEOptEditorIntf,
IDEOptionsIntf, IDEOptEditorIntf, IDEImagesIntf,
// IDE
LazarusIDEStrConsts, EnvironmentOpts, IdeCoolbarData;
@ -136,12 +136,7 @@ end;
procedure TIdeCoolbarOptionsFrame.Setup(ADialog: TAbstractOptionsEditorDialog);
begin
dbAddConfigDelete.Caption := lisCoolbarAddConfigDelete;
dbGeneralSettings.Caption := lisCoolbarGeneralSettings;
bDefaultToolbar.Caption := lisCoolbarRestoreDefaults;
bAdd.Caption := lisBtnAdd;
bConfig.Caption := lisCoolbarConfigure;
bDelete.Caption := lisBtnDelete;
cbCoolBarVisible.Caption := lisCoolbarVisible;
lbCoolBarWidth.Caption := lisCoolbarWidth;
gbGrabStyle.Caption := lisCoolbarGrabStyle;
@ -156,6 +151,17 @@ begin
cbBorderStyle.Items.Strings[0] := lisCoolbarBorderStyleItem0;
cbBorderStyle.Items.Strings[1] := lisCoolbarBorderStyleItem1;
bDefaultGeneral.Caption := lisCoolbarRestoreDefaults;
IDEImages.AssignImage(bDefaultGeneral, 'restore_default');
dbAddConfigDelete.Caption := lisCoolbarAddConfigDelete;
bAdd.Caption := lisBtnAdd;
IDEImages.AssignImage(bAdd, 'laz_add');
bConfig.Caption := lisCoolbarConfigure;
IDEImages.AssignImage(bConfig, 'preferences');
bDelete.Caption := lisBtnDelete;
IDEImages.AssignImage(bDelete, 'laz_delete');
bDefaultToolbar.Caption := lisCoolbarRestoreDefaults;
IDEImages.AssignImage(bDefaultToolbar, 'restore_defaults');
end;
procedure TIdeCoolbarOptionsFrame.ReadSettings(AOptions: TAbstractIDEOptions);

Binary file not shown.

Before

Width:  |  Height:  |  Size: 573 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 482 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 755 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 908 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 507 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 801 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 958 B

View File

@ -52,6 +52,12 @@ laz_open_unit_200.png
laz_save.png
laz_save_150.png
laz_save_200.png
restore_default.png
restore_default_150.png
restore_default_200.png
restore_defaults.png
restore_defaults_150.png
restore_defaults_200.png
debugger directory:

Binary file not shown.

View File

@ -66,11 +66,15 @@ actions/laz_refresh.png
actions/laz_save.png
actions/laz_save_150.png
actions/laz_save_200.png
actions/laz_set_colors_default.png
actions/laz_set_color_default.png
actions/laz_tick.png
actions/laz_wand.png
actions/preferences.png
actions/restore_default.png
actions/restore_default_150.png
actions/restore_default_200.png
actions/restore_defaults.png
actions/restore_defaults_150.png
actions/restore_defaults_200.png
codecompletion/cc_class.png
codecompletion/cc_class_150.png
codecompletion/cc_class_200.png