Skip to content

Commit

Permalink
Update sidebar design, sidebar scrollbars and tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
jwortmann committed Jul 29, 2023
1 parent 1c09098 commit cb586f1
Show file tree
Hide file tree
Showing 44 changed files with 106 additions and 20 deletions.
102 changes: 82 additions & 20 deletions Brackets.sublime-theme
Original file line number Diff line number Diff line change
Expand Up @@ -159,28 +159,61 @@
"layer0.opacity": 1.0,
"content_margin": 0
},
{
"class": "sidebar_container",
"settings": {"themed_title_bar": true},
"layer1.texture": "Theme - Brackets/assets/sidebar_rounded.png",
"layer1.tint": "var(titlebar_background)",
"layer1.opacity": 1.0,
"layer1.inner_margin": [11, 36, 0, 0],
"content_margin": [7, 34, 0, 0]
},
{
"class": "sidebar_container",
"settings": {"themed_title_bar": true, "file_tab_style": "square"},
"layer1.texture": "Theme - Brackets/assets/sidebar_square.png"
},
{
"class": "sidebar_container",
"settings": {"themed_title_bar": true, "file_tab_style": "angled"},
"layer1.texture": "Theme - Brackets/assets/sidebar_angled.png"
},
{
"class": "sidebar_tree",
"row_padding": [12, 4],
"row_padding": [10, 4, 12, 4],
"indent": 10,
"indent_offset": 14,
"indent_top_level": false,
"spacer_rows": true
},
{
"class": "sidebar_tree",
"settings": {"overlay_scroll_bars": false},
"parents": [{"class": "scroll_area_control", "attributes": ["scrollable"]}],
"row_padding": [10, 4, 3, 4],
},
{
"class": "tree_row",
"attributes": ["selected"],
"layer0.texture": "Theme - Brackets/assets/sidebar_row_selected.png",
"layer0.tint": "var(sidebar_selected_background)",
"layer0.opacity": 1.0,
"layer1.texture": "Theme - Brackets/assets/sidebar_selected_border.png",
"layer0.inner_margin": 2,
"layer1.texture": "Theme - Brackets/assets/sidebar_row_selected_border.png",
"layer1.tint": "var(sidebar_selected_border)",
"layer1.opacity": 1.0,
"layer1.inner_margin": [0, 2, 0, 0],
"layer2.texture": "Theme - Brackets/assets/fill.png",
"layer2.tint": "var(sidebar_background)",
"layer2.opacity": 1.0,
"layer2.inner_margin": [0, 1, 0, 0]
"layer1.inner_margin": 2
},
// {
// "class": "tree_row",
// "settings": {"overlay_scroll_bars": false},
// "parents": [{"class": "scroll_area_control", "attributes": ["scrollable"]}],
// "attributes": ["selected"],
// "layer0.texture": "Theme - Brackets/assets/sidebar_row_selected_rounded.png",
// "layer0.inner_margin": 5,
// "layer1.texture": "Theme - Brackets/assets/sidebar_row_selected_rounded_border.png",
// "layer1.inner_margin": 5
// },
{
"class": "sidebar_heading",
"font.size": 12,
Expand All @@ -189,6 +222,11 @@
"shadow_offset": [0, 1],
"case": "title"
},
{
"class": "file_system_entry",
"content_margin": 0,
"spacing": 4
},
{
"class": "sidebar_label",
"font.size": 12,
Expand Down Expand Up @@ -551,7 +589,8 @@
"layer0.opacity": 1.0,
"layer0.tint": "var(titlebar_background)",
"content_margin": 0,
"tab_height": 34
"tab_height": 32,
"connector_height": 2
},
{
"class": "tabset_control",
Expand All @@ -561,29 +600,23 @@
{
"class": "tabset_control",
"settings": {"file_tab_style": "rounded"},
"tab_overlap": 10,
"tab_height": 32,
"connector_height": 2
"tab_overlap": 10
},
{
"class": "tabset_control",
"settings": {"file_tab_style": "square"},
"tab_overlap": 1,
"tab_height": 32,
"connector_height": 2,
"spacing": 5
},
{
"class": "tabset_control",
"settings": {"file_tab_style": "angled"},
"tab_overlap": 16,
"tab_height": 34
},
{
"class": "tabset_control",
"settings": {"file_tab_style": "wave"},
"tab_overlap": 18,
"tab_height": 34
},
{
"class": "tab_connector",
Expand Down Expand Up @@ -652,13 +685,13 @@
{
"class": "tab_control",
"settings": {"file_tab_style": "angled"},
"layer0.texture": "Theme - Default/common/tab_shadow.png",
"layer0.texture": "Theme - Brackets/assets/tab_angled_shadow.png",
"layer0.inner_margin": [19, 0, 19, 0],
"layer0.opacity": 0.2,
"layer1.texture": "Theme - Default/common/tab.png",
"layer1.texture": "Theme - Brackets/assets/tab_angled.png",
"layer1.inner_margin": [19, 0, 19, 0],
"layer1.opacity": 1.0,
"layer2.texture": "Theme - Default/common/tab_highlight.png",
"layer2.texture": "Theme - Brackets/assets/tab_angled_highlight.png",
"layer2.inner_margin": [19, 0, 19, 0],
"layer2.opacity": 0.0,
"layer3.inner_margin": [19, 0, 19, 0],
Expand Down Expand Up @@ -791,6 +824,12 @@
"attributes": ["dirty", "!selected", "hover"],
"layer2.opacity": 0.4
},
{
"class": "tab_control",
"settings": {"file_tab_style": ["angled", "wave"], "highlight_modified_tabs": true},
"attributes": ["dirty", "file_light", "!selected", "hover"],
"layer2.opacity": 0.5
},
{
"class": "tab_control",
"settings": {"file_tab_style": ["rounded", "square"], "highlight_modified_tabs": true},
Expand All @@ -811,7 +850,7 @@
},
{
"class": "tab_control",
"settings": {"highlight_modified_tabs": true},
"settings": {"file_tab_style": ["rounded", "square"], "highlight_modified_tabs": true},
"attributes": ["dirty", "file_light", "!selected", "hover"],
"layer2.opacity": 0.7
},
Expand Down Expand Up @@ -2314,6 +2353,12 @@
{
"class": "scroll_area_control",
"parents": [{"class": "sidebar_container"}],
"overlay": false
},
{
"class": "scroll_area_control",
"settings": {"overlay_scroll_bars": true},
"parents": [{"class": "sidebar_container"}],
"overlay": true
},
{
Expand Down Expand Up @@ -2687,12 +2732,23 @@
"parents": [{"class": "sidebar_container"}],
"layer0.texture": "Theme - Default/common/scroll.png",
"layer0.inner_margin": 2,
"layer0.opacity": 1.0,
"layer0.opacity": {"target": 0.0, "speed": 10.0, "interpolation": "smoothstep"},
"layer0.tint": "var(scrollbar_puck_sidebar)",
"layer1.opacity": 0.0,
"layer2.opacity": 0.0,
"content_margin": [0, 40]
},
{
"class": "puck_control",
"parents": [{"class": "sidebar_container", "attributes": ["hover"]}],
"layer0.opacity": {"target": 1.0, "speed": 10.0, "interpolation": "smoothstep"},
},
{
"class": "puck_control",
"settings": ["overlay_scroll_bars"],
"parents": [{"class": "sidebar_container"}],
"layer0.opacity": 1.0,
},
{
"class": "puck_control",
"parents": [{"class": "sidebar_container"}],
Expand Down Expand Up @@ -2748,6 +2804,12 @@
"parents": [{"class": "window", "attributes": ["!file_light"]}],
"layer0.tint": "var(scrollbar_background_dark)"
},
{
"class": "scroll_corner_control",
"parents": [{"class": "sidebar_container"}],
"layer0.opacity": 1.0,
"layer0.tint": "var(sidebar_background)"
},
////////[ Inputs ]//////////////////////////////////////////////////////////////
{
"class": "text_line_control",
Expand Down
12 changes: 12 additions & 0 deletions assets/convert.bat
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,15 @@ inkscape --export-type=png -w 42 -h 18 [email protected]
inkscape --export-type=png -w 14 -h 6 --export-filename=scroll_horiz_thin3.png scroll_horiz_thin3.svg
inkscape --export-type=png -w 28 -h 12 --export-filename=scroll_horiz_thin3@2x.png scroll_horiz_thin3.svg
inkscape --export-type=png -w 42 -h 18 --export-filename=scroll_horiz_thin3@3x.png scroll_horiz_thin3.svg
inkscape --export-type=png -w 12 -h 37 --export-filename=sidebar_angled.png sidebar_angled.svg
inkscape --export-type=png -w 24 -h 74 --export-filename=sidebar_angled@2x.png sidebar_angled.svg
inkscape --export-type=png -w 36 -h 111 --export-filename=sidebar_angled@3x.png sidebar_angled.svg
inkscape --export-type=png -w 12 -h 37 --export-filename=sidebar_square.png sidebar_square.svg
inkscape --export-type=png -w 24 -h 74 --export-filename=sidebar_square@2x.png sidebar_square.svg
inkscape --export-type=png -w 36 -h 111 --export-filename=sidebar_square@3x.png sidebar_square.svg
inkscape --export-type=png -w 16 -h 16 --export-filename=sidebar_row_selected.png sidebar_row_selected.svg
inkscape --export-type=png -w 32 -h 32 --export-filename=sidebar_row_selected@2x.png sidebar_row_selected.svg
inkscape --export-type=png -w 48 -h 48 --export-filename=sidebar_row_selected@3x.png sidebar_row_selected.svg
inkscape --export-type=png -w 16 -h 16 --export-filename=sidebar_row_selected_border.png sidebar_row_selected_border.svg
inkscape --export-type=png -w 32 -h 32 --export-filename=sidebar_row_selected_border@2x.png sidebar_row_selected_border.svg
inkscape --export-type=png -w 48 -h 48 --export-filename=sidebar_row_selected_border@3x.png sidebar_row_selected_border.svg
Binary file added assets/sidebar_angled.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/sidebar_angled.svg
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/[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/[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/sidebar_rounded.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/[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/[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/sidebar_row_selected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/sidebar_row_selected.svg
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/[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/[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/sidebar_row_selected_border.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/sidebar_row_selected_border.svg
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/[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/[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/sidebar_row_selected_rounded.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/[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/sidebar_row_selected_rounded_border.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/[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 removed assets/sidebar_selected_border.png
Binary file not shown.
Binary file added assets/sidebar_square.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/sidebar_square.svg
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/[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/[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/tab_angled.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/[email protected]
Binary file added assets/[email protected]
Binary file added assets/tab_angled_border.png
Binary file added assets/[email protected]
Binary file added assets/[email protected]
Binary file added assets/tab_angled_highlight.png
Binary file added assets/[email protected]
Binary file added assets/[email protected]
Binary file added assets/tab_angled_shadow.png
Binary file added assets/[email protected]
Binary file added assets/[email protected]
Binary file modified assets/tab_wave.png
Binary file modified assets/[email protected]
Binary file modified assets/tab_wave_border.png
Binary file modified assets/[email protected]
Binary file modified assets/tab_wave_highlight.png
Binary file modified assets/[email protected]

0 comments on commit cb586f1

Please sign in to comment.