Skip to content

Commit

Permalink
FolderManager: use git emblem icons (#1463)
Browse files Browse the repository at this point in the history
* FolderManager: use git emblem icons

* Use symbolic version

* Gresource git emblems

* Fix typo

* Twice typo

---------

Co-authored-by: Ryan Kornheisl <[email protected]>
  • Loading branch information
danirabbit and zeebok authored Sep 5, 2024
1 parent e4ed17f commit c312bc8
Show file tree
Hide file tree
Showing 4 changed files with 376 additions and 2 deletions.
186 changes: 186 additions & 0 deletions data/icons/emblem-git-modified-symbolic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
186 changes: 186 additions & 0 deletions data/icons/emblem-git-new-symbolic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions data/io.elementary.code.gresource.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,7 @@
</gresource>
<gresource prefix="/io/elementary/code/icons">
<file alias="scalable/actions/filter-symbolic.svg" compressed="true" preprocess="xml-stripblanks">icons/filter-symbolic.svg</file>
<file alias="scalable/emblems/emblem-git-modified-symbolic.svg" compressed="true" preprocess="xml-stripblanks">icons/emblem-git-modified-symbolic.svg</file>
<file alias="scalable/emblems/emblem-git-new-symbolic.svg" compressed="true" preprocess="xml-stripblanks">icons/emblem-git-new-symbolic.svg</file>
</gresource>
</gresources>
4 changes: 2 additions & 2 deletions src/FolderManager/ProjectFolderItem.vala
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ namespace Scratch.FolderManager {
}

static construct {
added_icon = new ThemedIcon ("user-available");
modified_icon = new ThemedIcon ("user-away");
added_icon = new ThemedIcon ("emblem-git-new-symbolic");
modified_icon = new ThemedIcon ("emblem-git-modified-symbolic");
}

private void branch_or_name_changed () {
Expand Down

0 comments on commit c312bc8

Please sign in to comment.