Skip to content

Commit 347513c

Browse files
committed
Refine dock layout and toolbar
1 parent fc5b628 commit 347513c

7 files changed

Lines changed: 386 additions & 622 deletions

File tree

anycode/App.css

Lines changed: 0 additions & 291 deletions
Original file line numberDiff line numberDiff line change
@@ -22,28 +22,6 @@
2222
min-width: 200px;
2323
}
2424

25-
.tab {
26-
display: flex;
27-
align-items: center;
28-
/* color: #ccc; */
29-
color: #888888;
30-
cursor: pointer;
31-
position: relative;
32-
white-space: nowrap;
33-
gap: 4px;
34-
}
35-
36-
.tab.active > .tab-filename {
37-
text-shadow: 0 0 6px rgba(255, 255, 255, 0.8)
38-
}
39-
.tab.active {
40-
/* background-color: rgba(105, 98, 98, 0.33); */
41-
color: #fff;
42-
/* text-shadow: 0 0 6px rgba(255, 255, 255, 0.8) */
43-
/* border-radius: 12px; */
44-
/* border: 1px solid rgb(70, 70, 70); */
45-
}
46-
4725
.tab-dirty-indicator {
4826
/* margin-right: 8px; */
4927
/* margin-left: 8px; */
@@ -54,15 +32,6 @@
5432
color: #ffffff;
5533
}
5634

57-
.tab-filename {
58-
flex: 1;
59-
overflow: hidden;
60-
/* text-overflow: ellipsis; */
61-
/* height: 100%; */
62-
padding-left: 8px;
63-
padding-right: 4px;
64-
}
65-
6635
.tab-close-button {
6736
background: none;
6837
border: none;
@@ -83,10 +52,6 @@
8352
box-shadow: none;
8453
}
8554

86-
.tab:hover .tab-close-button {
87-
opacity: 1;
88-
}
89-
9055
.tab-rename-input {
9156
background: transparent;
9257
border: none;
@@ -107,126 +72,6 @@
10772
font-size: 18px; */
10873
}
10974

110-
.toolbar {
111-
display: flex;
112-
width: 100%;
113-
height: 100%;
114-
background: var(--background-color, #242424);
115-
padding: 4px 10px;
116-
gap: 6px;
117-
align-items: center;
118-
user-select: none;
119-
border-radius: 0;
120-
box-shadow: none;
121-
border: none;
122-
overflow: hidden;
123-
box-sizing: border-box;
124-
}
125-
126-
.toolbar-title {
127-
color: #a6a6a6;
128-
text-transform: uppercase;
129-
letter-spacing: 0.08em;
130-
font-size: 12px;
131-
line-height: 1;
132-
flex-shrink: 0;
133-
padding-right: 2px;
134-
}
135-
136-
.app-container.toolbar-header-visible .layout-dock-panel--toolbar .toolbar-title {
137-
display: none;
138-
}
139-
140-
.app-container.toolbar-header-compact .layout-dock-panel--toolbar .toolbar-title {
141-
display: block;
142-
}
143-
144-
/* .toolbar::after {
145-
content: '';
146-
position: absolute;
147-
left: 0;
148-
right: 0;
149-
bottom: 0;
150-
height: 1px;
151-
background: linear-gradient(to right, transparent, #555, transparent);
152-
} */
153-
154-
.toolbar-buttons {
155-
display: flex;
156-
gap: 0px;
157-
align-items: center;
158-
flex-shrink: 0;
159-
}
160-
161-
.toolbar-tabs {
162-
display: flex;
163-
height: 100%;
164-
overflow-x: auto;
165-
overflow-y: hidden;
166-
flex: 1;
167-
min-width: 0;
168-
scrollbar-width: none;
169-
-ms-overflow-style: none;
170-
}
171-
172-
.toolbar-tabs::-webkit-scrollbar {
173-
display: none;
174-
}
175-
176-
.tab-terminal {
177-
color: #7ec8ff;
178-
}
179-
180-
.tab-terminal.active {
181-
color: #d8f0ff;
182-
}
183-
184-
.tab-agent {
185-
color: #9fd5a9;
186-
}
187-
188-
.tab-agent.active {
189-
color: #d9f5de;
190-
}
191-
192-
.terminal-toolbar-add {
193-
border: none;
194-
background: transparent;
195-
color: #7ec8ff;
196-
padding: 0 8px;
197-
cursor: pointer;
198-
white-space: nowrap;
199-
}
200-
201-
.terminal-toolbar-add:hover {
202-
color: #d8f0ff;
203-
}
204-
205-
.agent-toolbar-btn {
206-
border: none;
207-
background: transparent;
208-
color: #9fd5a9;
209-
padding: 0 6px;
210-
cursor: pointer;
211-
display: inline-flex;
212-
align-items: center;
213-
justify-content: center;
214-
}
215-
216-
.agent-toolbar-btn:hover {
217-
color: #d9f5de;
218-
}
219-
220-
.agent-toolbar-btn svg {
221-
width: 16px;
222-
height: 16px;
223-
}
224-
225-
.toolbar button:focus {
226-
outline: none;
227-
border: none;
228-
box-shadow: none;
229-
}
23075
.save-button {
23176
background: transparent;
23277
color: white;
@@ -242,125 +87,6 @@
24287
box-shadow: 0 0 8px rgba(0, 122, 204, 0.5);
24388
}
24489

245-
.terminal-toggle-btn {
246-
background: none;
247-
border: none;
248-
color: #888;
249-
cursor: pointer;
250-
border-radius: 12px;
251-
font-weight: bold;
252-
transition: all 0.2s ease;
253-
display: flex;
254-
align-items: center;
255-
justify-content: center;
256-
padding: 4px;
257-
}
258-
259-
.terminal-toggle-btn:hover {
260-
color: #fff;
261-
/* text-shadow: 0 0 6px rgba(255, 255, 255, 0.8); */
262-
}
263-
264-
.terminal-toggle-btn.active {
265-
/* background-color: #444; */
266-
color: #fff;
267-
text-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
268-
}
269-
270-
.toggle-tree-btn {
271-
background: none;
272-
border: none;
273-
color: #888;
274-
cursor: pointer;
275-
border-radius: 12px;
276-
transition: all 0.2s ease;
277-
font-weight: bold;
278-
display: flex;
279-
align-items: center;
280-
justify-content: center;
281-
padding: 4px;
282-
}
283-
284-
.toggle-tree-btn:hover {
285-
color: #fff;
286-
}
287-
288-
.toggle-tree-btn.active {
289-
/* background-color: #444; */
290-
color: #fff;
291-
text-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
292-
}
293-
294-
.acp-toggle-btn {
295-
background: none;
296-
border: none;
297-
color: #888;
298-
cursor: pointer;
299-
border-radius: 12px;
300-
font-weight: bold;
301-
transition: all 0.2s ease;
302-
display: flex;
303-
align-items: center;
304-
justify-content: center;
305-
padding: 4px;
306-
}
307-
308-
.acp-toggle-btn:hover {
309-
color: #fff;
310-
/* text-shadow: 0 0 6px rgba(255, 255, 255, 0.8); */
311-
}
312-
313-
.acp-toggle-btn.active {
314-
/* background-color: #444; */
315-
color: #fff;
316-
text-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
317-
}
318-
319-
.toggle-mode-btn {
320-
background: transparent;
321-
border: none;
322-
color: #888;
323-
cursor: pointer;
324-
border-radius: 12px;
325-
transition: all 0.2s ease;
326-
display: flex;
327-
align-items: center;
328-
justify-content: center;
329-
padding: 4px;
330-
}
331-
332-
.toggle-mode-btn:hover {
333-
color: #fff;
334-
}
335-
336-
.toggle-mode-btn.active {
337-
color: #fff;
338-
text-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
339-
}
340-
341-
.editor-toggle-btn {
342-
background: none;
343-
border: none;
344-
color: #888;
345-
cursor: pointer;
346-
border-radius: 12px;
347-
font-weight: bold;
348-
transition: all 0.2s ease;
349-
display: flex;
350-
align-items: center;
351-
justify-content: center;
352-
padding: 4px;
353-
}
354-
355-
.editor-toggle-btn:hover {
356-
color: #fff;
357-
}
358-
359-
.editor-toggle-btn.active {
360-
color: #fff;
361-
text-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
362-
}
363-
36490
.language-indicator {
36591
color: #888;
36692
font-size: 12px;
@@ -568,20 +294,3 @@
568294
margin: 8px 0;
569295
font-size: 14px;
570296
}
571-
572-
@media (max-width: 768px) and (pointer: coarse) {
573-
.toolbar button svg {
574-
width: 32px;
575-
height: 32px;
576-
}
577-
578-
.toolbar {
579-
padding: 4px 8px;
580-
}
581-
.toolbar-buttons button {
582-
padding: 0px;
583-
}
584-
.tab-filename {
585-
font-size: 16px;
586-
}
587-
}

0 commit comments

Comments
 (0)