Skip to content

Commit

Permalink
Added 'add directory' icon
Browse files Browse the repository at this point in the history
  • Loading branch information
joern274 committed Dec 18, 2023
1 parent cf75caf commit 6dfa474
Show file tree
Hide file tree
Showing 8 changed files with 341 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ namespace hal
Q_OBJECT
Q_PROPERTY(QString disabledIconStyle READ disabledIconStyle WRITE setDisabledIconStyle)
Q_PROPERTY(QString newViewIconPath READ newViewIconPath WRITE setNewViewIconPath)
Q_PROPERTY(QString newDirIconPath READ newDirIconPath WRITE setNewDirIconPath)
Q_PROPERTY(QString newViewIconStyle READ newViewIconStyle WRITE setNewViewIconStyle)
Q_PROPERTY(QString renameIconPath READ renameIconPath WRITE setRenameIconPath)
Q_PROPERTY(QString renameIconStyle READ renameIconStyle WRITE setRenameIconStyle)
Expand Down Expand Up @@ -121,6 +122,7 @@ namespace hal
///@{
QString disabledIconStyle() const;
QString newViewIconPath() const;
QString newDirIconPath() const;
QString newViewIconStyle() const;
QString renameIconPath() const;
QString renameIconStyle() const;
Expand All @@ -140,6 +142,7 @@ namespace hal
///@{
void setDisabledIconStyle(const QString &path);
void setNewViewIconPath(const QString &path);
void setNewDirIconPath(const QString &path);
void setNewViewIconStyle(const QString &style);
void setRenameIconPath(const QString &path);
void setRenameIconStyle(const QString &style);
Expand Down Expand Up @@ -189,6 +192,7 @@ namespace hal

QAction* mNewViewAction;
QString mNewViewIconPath;
QString mNewDirIconPath;
QString mNewViewIconStyle;

QAction* mRenameAction;
Expand Down
1 change: 1 addition & 0 deletions plugins/gui/resources/gui_resources.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
<file alias="new-file">icons/new-file.svg</file>
<file alias="pen">icons/pen.svg</file>
<file alias="plus">icons/plus.svg</file>
<file alias="plusdir">icons/plusdir.svg</file>
<file alias="trashcan">icons/trashcan.svg</file>
<file alias="graph">icons/0189-tree.svg</file>
<file alias="keyboard">icons/0086-keyboard.svg</file>
Expand Down
69 changes: 69 additions & 0 deletions plugins/gui/resources/icons/plusdir.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
63 changes: 63 additions & 0 deletions plugins/gui/resources/icons/views-dir.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
191 changes: 191 additions & 0 deletions plugins/gui/resources/icons/views-view.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions plugins/gui/resources/stylesheet/dark.qss
Original file line number Diff line number Diff line change
Expand Up @@ -1128,6 +1128,7 @@ hal--ContextManagerWidget

qproperty-newViewIconStyle: "all->#e8e8e8";
qproperty-newViewIconPath: ":/icons/plus";
qproperty-newDirIconPath: ":/icons/plusdir";

qproperty-renameIconStyle: "all->#e8e8e8";
qproperty-renameIconPath: ":/icons/pen";
Expand Down
1 change: 1 addition & 0 deletions plugins/gui/resources/stylesheet/light.qss
Original file line number Diff line number Diff line change
Expand Up @@ -1153,6 +1153,7 @@ hal--ContextManagerWidget

qproperty-newViewIconStyle: "all->#FFFFFF";
qproperty-newViewIconPath: ":/icons/plus";
qproperty-newDirIconPath: ":/icons/plusdir";

qproperty-renameIconStyle: "all->#FFFFFF";
qproperty-renameIconPath: ":/icons/pen";
Expand Down
Loading

0 comments on commit 6dfa474

Please sign in to comment.