Skip to content

Commit f7840ab

Browse files
committed
App views buttons made into segmented control.
Signed-off-by: ubi de feo <[email protected]>
1 parent 5266f50 commit f7840ab

File tree

3 files changed

+27
-6
lines changed

3 files changed

+27
-6
lines changed

ui/arduino/main.css

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ button.inverted {
6363
background: rgba(0, 129, 132, 1) !important;
6464
}
6565

66-
button[disabled], button[disabled]:hover {
66+
button[disabled], button[disabled]:hover{
6767
cursor: default;
6868
opacity: 0.5;
6969
}
@@ -72,6 +72,10 @@ button:not([disabled]):hover {
7272
background: rgba(255, 255, 255, 1);
7373
}
7474

75+
button.active {
76+
background: rgba(255, 255, 255);
77+
}
78+
7579
button .icon {
7680
width: 63%;
7781
height: 63%;
@@ -167,8 +171,28 @@ button.small .icon {
167171
#app-views {
168172
display: flex;
169173
padding: 16px 10px 10px 10px;
170-
gap: 16px;
174+
width: 120px;
175+
/* gap: 16px; */
176+
}
177+
178+
#app-views .button{
179+
flex-grow: 1;
180+
width: 100%;
171181
}
182+
183+
#app-views .button button{
184+
width: 100%
185+
}
186+
187+
#app-views div:first-child button{
188+
border-radius: 8px 0px 0px 8px;
189+
190+
}
191+
#app-views div:last-child button{
192+
border-radius: 0px 8px 8px 0px;
193+
194+
}
195+
172196
.separator {
173197
height: 100%;
174198
min-width: 1px;

ui/arduino/media/files.svg

Lines changed: 0 additions & 3 deletions
This file was deleted.

ui/arduino/views/components/toolbar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ function Toolbar(state, emit) {
8181
onClick: () => emit('change-view', 'editor')
8282
})}
8383
${Button({
84-
icon: 'files.svg',
84+
icon: 'folder.svg',
8585
label: 'Files',
8686
tooltip: `Files (${metaKeyString}+Alt+2)`,
8787
active: state.view === 'file-manager',

0 commit comments

Comments
 (0)