Skip to content

Commit a0c1243

Browse files
committed
addressing ST2 sidebar alignment
1 parent 51f9ea7 commit a0c1243

File tree

8 files changed

+128
-26
lines changed

8 files changed

+128
-26
lines changed

assets/collapsed_icon_over.png

174 Bytes
Loading

assets/collapsed_icon_over@2x.png

309 Bytes
Loading

assets/expanded_icon_over.png

191 Bytes
Loading

assets/expanded_icon_over@2x.png

268 Bytes
Loading

messages/2.0.1.txt

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
2.0.1 - Patch for ST2 Sidebar Directory Icons and Alignement
2+
3+
===================================
4+
2.0.0 - IMPORTANT: Breaking Changes
5+
===================================
6+
7+
All options now start with "predawn_"
8+
Be sure to update your Preferences.sublime-settings file
9+
with your desired settings (there are some new ones, too!)
10+
11+
See below for all options with defaults:
12+
13+
============
14+
Tabs Options
15+
============
16+
17+
"predawn_tabs_active_underline": false,
18+
"predawn_tabs_large": false,
19+
"predawn_tabs_medium": false,
20+
"predawn_tabs_small": false,
21+
22+
===============
23+
Sidebar Options
24+
===============
25+
26+
"predawn_sidebar_arrows": false,
27+
"predawn_sidebar_large": false,
28+
"predawn_sidebar_medium": false,
29+
"predawn_sidebar_small": false,
30+
"predawn_sidebar_xlarge": false,
31+
"predawn_sidebar_xsmall": false,
32+
"predawn_sidebar_narrow": false,
33+
34+
=============
35+
Panel Options
36+
=============
37+
38+
"predawn_findreplace_small": false,
39+
"predawn_quick_panel_small": false,
40+
41+
==============================
42+
IMPORTANT - Sublime Text 3062+
43+
==============================
44+
45+
"theme": "predawn-DEV.sublime-theme",
46+
47+
48+
===============================================================
49+
I've put a lot of time and effort into making Predawn awesome.
50+
If you love it, please consider helping me make it even better!
51+
===============================================================
52+
53+
___ _ _ __ __ __ __ ___
54+
| _ ) | | | | \ \ / / | \/ | | __|
55+
| _ \ | |_| | \ V / | |\/| | | _|
56+
|___/ \___/ |_| |_| |_| |___|
57+
_ ___ ___ ___ ___ ___ ___ ___
58+
/_\ / __| / _ \ | __| | __| | __| | __| |__ \
59+
/ _ \ | (__ | (_) | | _| | _| | _| | _| /_/
60+
/_/ \_\ \___| \___/ |_| |_| |___| |___| (_)
61+
62+
https://plasso.co/s/ZezNW6UhHv/
63+
64+
___ ___
65+
/ _ \ | _ \
66+
| (_) || /
67+
\___/ |_|_\
68+
69+
If you want to put your money to really good use:
70+
71+
===================================
72+
HELP PROTECT THE POOR FROM VIOLENCE
73+
===================================
74+
75+
Give to the International Justice Mission:
76+
https://www.ijm.org/make-gift

messages/install.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ If you love it, please consider helping me make it even better!
6363
/ _ \ | (__ | (_) | | _| | _| | _| | _| /_/
6464
/_/ \_\ \___| \___/ |_| |_| |___| |___| (_)
6565

66-
https://plasso.co/jamie@jamiewilson.io
66+
https://plasso.co/s/ZezNW6UhHv/
6767

6868
___ ___
6969
/ _ \ | _ \

predawn.sublime-theme

Lines changed: 45 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,33 @@
809809
// ST2 Sidebar Folder Icons
810810
//
811811
//
812-
812+
{
813+
// Default Theme Icons
814+
"class": "disclosure_button_control",
815+
"layer0.texture": "Theme - Default/arrow_right.png",
816+
"layer0.opacity": 1.0,
817+
"layer0.inner_margin": 0,
818+
"layer1.texture": "Theme - Default/arrow_right_over.png",
819+
"layer1.opacity": 0.0,
820+
"layer1.inner_margin": 0,
821+
"content_margin": [9, 7, 8, 6]
822+
},
823+
{
824+
"class": "disclosure_button_control",
825+
"parents":
826+
[
827+
{ "class": "tree_row", "attributes": ["hover"] }
828+
],
829+
// "attributes": ["hover"],
830+
"layer0.opacity": 0.0,
831+
"layer1.opacity": 1.0
832+
},
833+
{
834+
"class": "disclosure_button_control",
835+
"attributes": ["expanded"],
836+
"layer0.texture": "Theme - Default/arrow_down.png",
837+
"layer1.texture": "Theme - Default/arrow_down_over.png"
838+
},
813839
{
814840
// Sidebar tree
815841
"class": "sidebar_tree",
@@ -849,35 +875,35 @@
849875
"class": "sidebar_tree",
850876
"settings": ["predawn_sidebar_narrow"],
851877
"indent": 5
852-
},{
853-
// Hides Default Arrow Icon
854-
"class": "icon_folder",
855-
"content_margin": [0, 0],
856-
"layer0.opacity": 0
857-
},
858-
{
859-
// Replaces Default Folder Icons
860-
"class": "disclosure_button_control",
861-
"content_margin": [8, 8],
862-
"layer0.texture": "Predawn/assets/folder.png",
863-
"layer0.opacity": 1.0
864878
},
865879
{
866-
// Open Folder Icon
880+
// predawn_sidebar_arrows
867881
"class": "disclosure_button_control",
868-
"attributes": ["expanded"],
869-
"layer0.texture": "Predawn/assets/folder_open.png"
882+
"settings": ["predawn_sidebar_arrows"],
883+
"layer0.texture": "Predawn/assets/collapsed_icon.png",
884+
"layer0.opacity": 1.0,
885+
"layer0.inner_margin": 0,
886+
"layer1.texture": "Predawn/assets/collapsed_icon_over.png",
887+
"layer1.opacity": 0.0,
888+
"layer1.inner_margin": 0,
889+
"content_margin": [8, 8]
870890
},
871891
{
872892
"class": "disclosure_button_control",
873893
"settings": ["predawn_sidebar_arrows"],
874-
"layer0.texture": "Predawn/assets/collapsed_icon.png",
875-
"layer0.opacity": 1.0
894+
"parents":
895+
[
896+
{ "class": "tree_row", "attributes": ["hover"] }
897+
],
898+
// "attributes": ["hover"],
899+
"layer0.opacity": 0.0,
900+
"layer1.opacity": 1.0
876901
},
877902
{
878903
"class": "disclosure_button_control",
879904
"settings": ["predawn_sidebar_arrows"],
880905
"attributes": ["expanded"],
881-
"layer0.texture": "Predawn/assets/expanded_icon.png"
906+
"layer0.texture": "Predawn/assets/expanded_icon.png",
907+
"layer1.texture": "Predawn/assets/expanded_icon_over.png"
882908
}
883909
]

predawn.tmTheme

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ COLOR KEY
8787
<key>name</key>
8888
<string>Python Docstring</string>
8989
<key>scope</key>
90-
<string>string.quoted.double.block.python</string>
90+
<string>string.quoted.double.block.python, text.html.django storage.type.templatetag.django storage.type.attr.django, text.html.jekyll punctuation.tag.jekyll string.quoted.single.jekyll, text.html.swig meta.function.block.start.swig string.quoted.single.html</string>
9191
<key>settings</key>
9292
<dict>
9393
<key>foreground</key>
@@ -133,7 +133,7 @@ COLOR KEY
133133
<key>name</key>
134134
<string>Handlebars Text</string>
135135
<key>scope</key>
136-
<string>text.html.handlebars meta.function.inline.other.handlebars variable.parameter.handlebars</string>
136+
<string>text.html.handlebars meta.function.inline.other.handlebars variable.parameter.handlebars, text.html.django storage.type.variable.django string.unquoted.tag-string.django</string>
137137
<key>settings</key>
138138
<dict>
139139
<key>foreground</key>
@@ -144,7 +144,7 @@ COLOR KEY
144144
<key>name</key>
145145
<string>Handlebars Braces</string>
146146
<key>scope</key>
147-
<string>text.html.handlebars meta.function.inline.other.handlebars support.constant.handlebars</string>
147+
<string>text.html.handlebars meta.function.inline.other.handlebars support.constant.handlebars, meta.function.block.start.swig, support.constant.swig, support.constant.handlebars, entity.tag.tagbraces.django</string>
148148
<key>settings</key>
149149
<dict>
150150
<key>foreground</key>
@@ -155,7 +155,7 @@ COLOR KEY
155155
<key>name</key>
156156
<string>Handlebars Loops</string>
157157
<key>scope</key>
158-
<string>text.html.handlebars meta.function.block.start.handlebars support.constant.handlebars, text.html.handlebars meta.function.block.end.handlebars support.constant.handlebars</string>
158+
<string>text.html.handlebars meta.function.block.start.handlebars support.constant.handlebars, string.unquoted.tag-string.django, keyword.control.filter.django</string>
159159
<key>settings</key>
160160
<dict>
161161
<key>foreground</key>
@@ -409,7 +409,7 @@ COLOR KEY
409409
<key>name</key>
410410
<string>css @at-rule</string>
411411
<key>scope</key>
412-
<string>meta.preprocessor.at-rule keyword.control.at-rule</string>
412+
<string>meta.preprocessor.at-rule keyword.control.at-rule, entity.name.tag.jekyll</string>
413413
<key>settings</key>
414414
<dict>
415415
<key>foreground</key>
@@ -431,7 +431,7 @@ COLOR KEY
431431
<key>name</key>
432432
<string>string quoted single</string>
433433
<key>scope</key>
434-
<string>string.quoted.single</string>
434+
<string>string.quoted.single, storage.type.attr.django, support.variable.jekyll</string>
435435
<key>settings</key>
436436
<dict>
437437
<key>foreground</key>

0 commit comments

Comments
 (0)