Skip to content

Commit 9fa4005

Browse files
committed
Updates to move to floating panels UI
1 parent 6b3ec81 commit 9fa4005

File tree

6 files changed

+21
-4
lines changed

6 files changed

+21
-4
lines changed

packages/theme/styles/_colors.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@
188188
--theme-popup-shadow: 0 0 .5rem rgba(0, 0, 0, .2);
189189
--theme-popup-checkicon: #FFFFFF99;
190190
--theme-panel-color: #1A1A28;
191+
--theme-workbench-color: #1A1A28;
191192
--theme-calendar-today-color: #fff;
192193
--theme-calendar-holiday-color: #eb5757;
193194
--theme-calendar-weekend-color: rgba(242, 153, 74, 1);
@@ -447,6 +448,7 @@
447448
--theme-popup-shadow: 0 0 .5rem rgba(0, 0, 0, .2);
448449
--theme-popup-checkicon: #205DC2;
449450
--theme-panel-color: #FFFFFF;
451+
--theme-workbench-color: #FFFFFF;
450452
--theme-calendar-today-color: #000;
451453
--theme-calendar-holiday-color: #eb5757;
452454
--theme-calendar-weekend-color: rgba(242, 153, 74, 1);

packages/theme/styles/common.scss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,12 @@
142142
.antiPanel-navigator {
143143
position: relative;
144144

145-
&:not(.second) { background-color: var(--theme-navpanel-color); }
145+
&:not(.second) {
146+
background-color: var(--theme-workbench-color);
147+
margin: var(--spacing-2) 0 var(--spacing-2) var(--spacing-2); // Changed from all sides to top, bottom, left only
148+
border: 1px solid var(--theme-divider-color);
149+
border-radius: var(--small-focus-BorderRadius);
150+
}
146151
&:not(.right) {
147152
min-width: 12.5rem;
148153
max-width: 22.5rem;

packages/theme/styles/components.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,11 @@
2323
min-width: 0;
2424
border: 1px solid var(--theme-divider-color); // var(--global-surface-02-BorderColor);
2525
border-radius: var(--small-focus-BorderRadius);
26+
padding: var(--spacing-2);
2627

2728
&:not(.modal) {
2829
background-color: var(--theme-panel-color); // var(--global-surface-02-BackgroundColor);
30+
margin: var(--spacing-2);
2931
}
3032
&.modal {
3133
overflow: hidden;

plugins/workbench-resources/src/components/Workbench.svelte

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -941,6 +941,14 @@
941941
<div class="cover shown" on:click={() => ($deviceInfo.navigator.visible = false)} />
942942
{/if}
943943
{#if mainNavigator}
944+
<Separator
945+
name={'workbench'}
946+
float={$deviceInfo.navigator.float}
947+
index={0}
948+
color={'transparent'}
949+
separatorSize={0}
950+
short
951+
/>
944952
<div
945953
class="antiPanel-navigator no-print {$deviceInfo.navigator.direction === 'horizontal'
946954
? 'portrait'
@@ -1114,6 +1122,7 @@
11141122
.antiPanel-application:not(.horizontal) {
11151123
border-radius: var(--medium-BorderRadius) 0 0 var(--medium-BorderRadius);
11161124
border-right: none;
1125+
background-color: var(--theme-panel-color);
11171126
}
11181127
}
11191128

plugins/workbench-resources/src/components/sidebar/SidebarExpanded.svelte

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@
158158
min-width: 0;
159159
min-height: 0;
160160
background-color: var(--theme-panel-color);
161-
162161
border-left: none;
163162
}
164163

plugins/workbench-resources/src/components/sidebar/widgets/WidgetsBar.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@
9898
flex-direction: column;
9999
padding-block: var(--spacing-2);
100100
height: 100%;
101-
width: 3.5rem;
101+
width: var(--app-panel-width);
102102
min-width: 3.5rem;
103103
max-width: 3.5rem;
104-
background-color: var(--theme-navpanel-color);
104+
background-color: var(--theme-workbench-color);
105105
border-radius: 0 var(--medium-BorderRadius) var(--medium-BorderRadius) 0;
106106
overflow-y: auto;
107107
}

0 commit comments

Comments
 (0)