Skip to content

Commit

Permalink
Merge pull request #896 from cjee21/disabled-icons
Browse files Browse the repository at this point in the history
Windows GUI: Add disabled toolbar icons
  • Loading branch information
JeromeMartinez authored Jun 30, 2024
2 parents dda61d6 + bb3a661 commit 223d9ae
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 7 deletions.
50 changes: 44 additions & 6 deletions Source/GUI/VCL/GUI_Main.dfm
Original file line number Diff line number Diff line change
Expand Up @@ -2615,12 +2615,6 @@ object MainF: TMainF
OnClick = M_Options_ShowMenuClick
end
end
object ToolBar_Image_Disabled: TImageList
Height = 32
Width = 32
Left = 768
Top = 256
end
object OpenDialog1: TOpenDialog
Options = [ofHideReadOnly, ofAllowMultiSelect, ofEnableSizing]
Left = 768
Expand Down Expand Up @@ -7369,4 +7363,48 @@ object MainF: TMainF
Left = 768
Top = 424
end
object ToolBar_Image_Disabled: TVirtualImageList
Images = <
item
CollectionIndex = 0
CollectionName = 'File_Open_File'
Disabled = True
Name = 'File_Open_File_Disabled'
end
item
CollectionIndex = 1
CollectionName = 'File_Open_Directory'
Disabled = True
Name = 'File_Open_Directory_Disabled'
end
item
CollectionIndex = 2
CollectionName = 'File_Export'
Disabled = True
Name = 'File_Export_Disabled'
end
item
CollectionIndex = 3
CollectionName = 'Options_Prefs'
Disabled = True
Name = 'Options_Prefs_Disabled'
end
item
CollectionIndex = 4
CollectionName = 'Help_About'
Disabled = True
Name = 'Help_About_Disabled'
end
item
CollectionIndex = 5
CollectionName = 'View'
Disabled = True
Name = 'View_Disabled'
end>
ImageCollection = ImageCollection1
Width = 32
Height = 32
Left = 768
Top = 256
end
end
2 changes: 1 addition & 1 deletion Source/GUI/VCL/GUI_Main.h
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ class TMainF : public TForm
TMenuItem *ToolBar_View_Custom;
TMenuItem *N3;
TMenuItem *ToolBar_View_System;
TImageList *ToolBar_Image_Disabled;
TMenuItem *M_Options_ShowMenu;
TMenuItem *N4;
TMenuItem *ToolBar_View_ShowMenu;
Expand Down Expand Up @@ -228,6 +227,7 @@ class TMainF : public TForm
TImageCollection* ImageCollection1;
TVirtualImageList* Menu_Image;
TVirtualImageList* Toolbar_Image;
TVirtualImageList *ToolBar_Image_Disabled;
TApplicationEvents *ApplicationEvents1;
TFileOpenDialog *FolderOpenDialog1;
TPanel *Page_Sheet_Panel1;
Expand Down

0 comments on commit 223d9ae

Please sign in to comment.