Skip to content

Commit

Permalink
feat: New “material_theme_arrow_folders” setting
Browse files Browse the repository at this point in the history
Close #998
  • Loading branch information
equinusocio committed Oct 12, 2016
1 parent f5180ef commit 4c22ee0
Show file tree
Hide file tree
Showing 124 changed files with 1,984 additions and 6 deletions.
624 changes: 623 additions & 1 deletion Material-Theme-Darker.sublime-theme

Large diffs are not rendered by default.

624 changes: 623 additions & 1 deletion Material-Theme-Lighter.sublime-theme

Large diffs are not rendered by default.

624 changes: 623 additions & 1 deletion Material-Theme.sublime-theme

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions Preferences.sublime-settings
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@
// Disable the folder animation inside the tree view
"material_theme_disable_folder_animation": false,

// Replace folder icons with arrows
"material_theme_arrow_folders": false,

// Reduce the size of the sidebar/tree
"material_theme_compact_sidebar": false,

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ If you want to enable the white panels and inputs you can install the addon pack
"material_theme_compact_sidebar" : true , // Set compact side bar
"material_theme_contrast_mode" : true , // Enable sidebar and panels contrast mode
"material_theme_disable_fileicons" : true , // Hide sidebar file type icons
"material_theme_arrow_folders" : true , // Replace folder icons with arrows
"material_theme_big_fileicons" : true , // Show bigger file type icons
"material_theme_disable_folder_animation" : true , // Disable folder animation
"material_theme_disable_tree_indicator" : true , // Disable sidebar file indicator
Expand Down
Binary file added assets/accent-acid-lime/arrow_folder--hover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/accent-acid-lime/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/accent-acid-lime/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/accent-acid-lime/arrow_folder--opened.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/accent-acid-lime/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/accent-acid-lime/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/accent-blue/arrow_folder--hover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/accent-blue/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/accent-blue/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/accent-blue/arrow_folder--opened.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/accent-blue/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/accent-blue/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/accent-brba/arrow_folder--hover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/accent-brba/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/accent-brba/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/accent-brba/arrow_folder--opened.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/accent-brba/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/accent-brba/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/accent-bright-teal/arrow_folder--hover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/accent-bright-teal/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/accent-bright-teal/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/accent-bright-teal/arrow_folder--opened.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/accent-bright-teal/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/accent-bright-teal/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/accent-bright-teal/arrow_folder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/accent-bright-teal/[email protected]
Binary file added assets/accent-bright-teal/[email protected]
Binary file added assets/accent-cyan/arrow_folder--hover.png
Binary file added assets/accent-cyan/[email protected]
Binary file added assets/accent-cyan/[email protected]
Binary file added assets/accent-cyan/arrow_folder--opened.png
Binary file added assets/accent-cyan/[email protected]
Binary file added assets/accent-cyan/[email protected]
Binary file added assets/accent-graphite/arrow_folder--hover.png
Binary file added assets/accent-graphite/[email protected]
Binary file added assets/accent-graphite/[email protected]
Binary file added assets/accent-graphite/arrow_folder--opened.png
Binary file added assets/accent-graphite/[email protected]
Binary file added assets/accent-graphite/[email protected]
Binary file added assets/accent-indigo/arrow_folder--hover.png
Binary file added assets/accent-indigo/[email protected]
Binary file added assets/accent-indigo/[email protected]
Binary file added assets/accent-indigo/arrow_folder--opened.png
Binary file added assets/accent-indigo/[email protected]
Binary file added assets/accent-indigo/[email protected]
Binary file added assets/accent-lime/arrow_folder--hover.png
Binary file added assets/accent-lime/[email protected]
Binary file added assets/accent-lime/[email protected]
Binary file added assets/accent-lime/arrow_folder--opened.png
Binary file added assets/accent-lime/[email protected]
Binary file added assets/accent-lime/[email protected]
Binary file added assets/accent-orange/arrow_folder--hover.png
Binary file added assets/accent-orange/[email protected]
Binary file added assets/accent-orange/[email protected]
Binary file added assets/accent-orange/arrow_folder--opened.png
Binary file added assets/accent-orange/[email protected]
Binary file added assets/accent-orange/[email protected]
Binary file added assets/accent-pink/arrow_folder--hover.png
Binary file added assets/accent-pink/[email protected]
Binary file added assets/accent-pink/[email protected]
Binary file added assets/accent-pink/arrow_folder--opened.png
Binary file added assets/accent-pink/[email protected]
Binary file added assets/accent-pink/[email protected]
Binary file added assets/accent-purple/arrow_folder--hover.png
Binary file added assets/accent-purple/[email protected]
Binary file added assets/accent-purple/[email protected]
Binary file added assets/accent-purple/arrow_folder--opened.png
Binary file added assets/accent-purple/[email protected]
Binary file added assets/accent-purple/[email protected]
Binary file added assets/accent-red/arrow_folder--hover.png
Binary file added assets/accent-red/[email protected]
Binary file added assets/accent-red/[email protected]
Binary file added assets/accent-red/arrow_folder--opened.png
Binary file added assets/accent-red/[email protected]
Binary file added assets/accent-red/[email protected]
Binary file added assets/accent-sky/arrow_folder--hover.png
Binary file added assets/accent-sky/[email protected]
Binary file added assets/accent-sky/[email protected]
Binary file added assets/accent-sky/arrow_folder--opened.png
Binary file added assets/accent-sky/[email protected]
Binary file added assets/accent-sky/[email protected]
Binary file added assets/accent-tomato/arrow_folder--hover.png
Binary file added assets/accent-tomato/[email protected]
Binary file added assets/accent-tomato/[email protected]
Binary file added assets/accent-tomato/arrow_folder--opened.png
Binary file added assets/accent-tomato/[email protected]
Binary file added assets/accent-tomato/[email protected]
Binary file added assets/accent-yellow/arrow_folder--hover.png
Binary file added assets/accent-yellow/[email protected]
Binary file added assets/accent-yellow/[email protected]
Binary file added assets/accent-yellow/arrow_folder--opened.png
Binary file added assets/accent-yellow/[email protected]
Binary file added assets/accent-yellow/[email protected]
Binary file added assets/commons/arrow_folder--hover.png
Binary file added assets/commons/[email protected]
Binary file added assets/commons/[email protected]
Binary file added assets/commons/arrow_folder--opened.png
Binary file added assets/commons/[email protected]
Binary file added assets/commons/[email protected]
Binary file added assets/commons/arrow_folder.png
Binary file added assets/commons/[email protected]
Binary file added assets/commons/[email protected]
Binary file added assets/darker/arrow_folder.png
Binary file added assets/darker/[email protected]
Binary file added assets/darker/[email protected]
Binary file added assets/default/arrow_folder.png
Binary file added assets/default/[email protected]
Binary file added assets/default/[email protected]
Binary file added assets/lighter/arrow_folder.png
Binary file added assets/lighter/[email protected]
Binary file added assets/lighter/[email protected]
2 changes: 1 addition & 1 deletion messages.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"install": "messages/install.md",
"3.1.11": "messages/recent.md"
"3.2.2": "messages/recent.md"
}
3 changes: 2 additions & 1 deletion messages/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,15 @@ You can also manually activate this theme by adding these lines to your user set
"material_theme_compact_sidebar" : true , // Set compact side bar
"material_theme_contrast_mode" : true , // Enable sidebar and panels contrast mode
"material_theme_disable_fileicons" : true , // Hide sidebar file type icons
"material_theme_arrow_folders" : true , // Replace folder icons with arrows
"material_theme_big_fileicons" : true , // Show bigger file type icons
"material_theme_disable_folder_animation" : true , // Disable folder animation
"material_theme_disable_tree_indicator" : true , // Disable sidebar file indicator
"material_theme_panel_separator" : true , // Show bottom panel separator
"material_theme_small_statusbar" : true , // Set small status bar
"material_theme_small_tab" : true , // Set small tabs
"material_theme_tabs_autowidth" : true , // Enable autowidth for tabs
"material_theme_tabs_separator" : true , // Show tabs separator, this disables tab hover animation
"material_theme_tabs_separator" : true , // Show tabs separator, this disables tab hover
// If you use Material Theme - Appbar addon you can use additional settings:
"material_theme_tree_headings" : true , // Show sidebar headings
Expand Down
40 changes: 40 additions & 0 deletions sources/themes/commons/accent.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,46 @@
},
},

// Arrow icon folder
{
"class": "icon_folder",
"settings": ["material_theme_arrow_folders", "material_theme_accent_<%= ui.accents[i].id %>"],
"layer2.texture": "Material Theme/assets/accent-<%= ui.accents[i].id %>/arrow_folder--hover.png",
"layer2.opacity": 0.0,
"layer3.texture": "Material Theme/assets/accent-<%= ui.accents[i].id %>/arrow_folder--opened.png",
"layer3.opacity": 0.0
},

{
"class": "icon_folder",
"settings": ["material_theme_arrow_folders", "material_theme_accent_<%= ui.accents[i].id %>"],
"parents":
[{ "class": "tree_row", "attributes": ["expanded"] }],
"layer1.opacity": 0.0,
"layer2.opacity": 0.0,
"layer3.opacity": 1.0
},

{
"class": "icon_folder",
"settings": ["material_theme_arrow_folders", "material_theme_accent_<%= ui.accents[i].id %>"],
"parents":
[ { "class": "tree_row", "attributes": ["hover"] }],
"layer1.opacity": 0.0,
"layer2.opacity": 1.0,
"layer3.opacity": 0.0
},

{
"class": "icon_folder",
"settings": ["material_theme_arrow_folders", "material_theme_accent_<%= ui.accents[i].id %>"],
"parents":
[ { "class": "tree_row", "attributes": ["expanded", "hover"] }],
"layer1.opacity": 0.0,
"layer2.opacity": 0.0,
"layer3.opacity": 1.0
},

// tab set scroll left | scroll right

{
Expand Down
2 changes: 1 addition & 1 deletion sources/themes/commons/options.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"font.bold": true
},

// Folder animation
// Disable Folder animation

{
"class": "icon_folder",
Expand Down
22 changes: 22 additions & 0 deletions sources/themes/darker/sidebar.json
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,19 @@
"layer3.opacity": 0.0,
},

// Arrow icon folder
{
"class": "icon_folder",
"settings": ["material_theme_arrow_folders"],
"layer0.opacity": 0,
"layer1.texture": "Material Theme/assets/darker/arrow_folder.png",
"layer1.opacity": 1,
"layer2.texture": "Material Theme/assets/commons/arrow_folder--hover.png",
"layer2.opacity": 0.0,
"layer3.texture": "Material Theme/assets/commons/arrow_folder--opened.png",
"layer3.opacity": 0.0
},

{
"class": "icon_folder",
"parents":
Expand Down Expand Up @@ -202,6 +215,15 @@
"layer3.opacity": 1.0,
},

// Arrow icon folder Expandend - Hover
{
"class": "icon_folder",
"settings": ["material_theme_arrow_folders"],
"parents": [{ "class": "tree_row", "attributes": ["expanded", "hover"] }],
"layer3.texture": "Material Theme/assets/commons/arrow_folder--opened.png",
},


{
"class": "icon_folder",
"parents":
Expand Down
22 changes: 22 additions & 0 deletions sources/themes/default/sidebar.json
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,19 @@
"layer3.opacity": 0.0,
},

// Arrow icon folder
{
"class": "icon_folder",
"settings": ["material_theme_arrow_folders"],
"layer0.opacity": 0,
"layer1.texture": "Material Theme/assets/default/arrow_folder.png",
"layer1.opacity": 1,
"layer2.texture": "Material Theme/assets/commons/arrow_folder--hover.png",
"layer2.opacity": 0.0,
"layer3.texture": "Material Theme/assets/commons/arrow_folder--opened.png",
"layer3.opacity": 0.0
},

{
"class": "icon_folder",
"parents":
Expand Down Expand Up @@ -210,6 +223,15 @@
"layer3.opacity": 1.0,
},


// Arrow icon folder Expandend - Hover
{
"class": "icon_folder",
"settings": ["material_theme_arrow_folders"],
"parents": [{ "class": "tree_row", "attributes": ["expanded", "hover"] }],
"layer3.texture": "Material Theme/assets/commons/arrow_folder--opened.png",
},

{
"class": "icon_folder",
"parents":
Expand Down
22 changes: 22 additions & 0 deletions sources/themes/lighter/sidebar.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,19 @@
"layer3.opacity": 0.0,
},

// Arrow icon folder
{
"class": "icon_folder",
"settings": ["material_theme_arrow_folders"],
"layer0.opacity": 0,
"layer1.texture": "Material Theme/assets/lighter/arrow_folder.png",
"layer1.opacity": 1,
"layer2.texture": "Material Theme/assets/commons/arrow_folder--hover.png",
"layer2.opacity": 0.0,
"layer3.texture": "Material Theme/assets/commons/arrow_folder--opened.png",
"layer3.opacity": 0.0
},

{
"class": "icon_folder",
"parents":
Expand Down Expand Up @@ -209,6 +222,15 @@
"layer3.opacity": 1.0,
},

// Arrow icon folder Expandend - Hover
{
"class": "icon_folder",
"settings": ["material_theme_arrow_folders"],
"parents": [{ "class": "tree_row", "attributes": ["expanded", "hover"] }],
"layer3.texture": "Material Theme/assets/commons/arrow_folder--opened.png",
},


{
"class": "icon_folder",
"parents":
Expand Down
1 change: 1 addition & 0 deletions utils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
'material_theme_big_fileicons',
'material_theme_disable_fileicons',
'material_theme_disable_folder_animation',
'material_theme_arrow_folders',
'material_theme_compact_sidebar',
'material_theme_disable_tree_indicator',
'material_theme_tree_headings'
Expand Down

0 comments on commit 4c22ee0

Please sign in to comment.