дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-05 17:47:08 +02:00
feat(ui): show dialogs in the page as sheets without window buttons on macOS
The title heads the content instead of a title bar with drawn traffic lights; Esc and Cancel close the dialog, and the title dims while the window is inactive.
Цей коміт міститься в:
1 джерело
61b86f4f5e
коміт
67bc719ae1
4 files changed
+15
-72
No files matched your search
@@ -83,9 +83,8 @@
|
||||
touch-action: none;
|
||||
}
|
||||
.macTitleBar {
|
||||
height: var(--h-dialog-titlebar-mac, 28px);
|
||||
padding: 0 12px 0 8px;
|
||||
gap: var(--space-3);
|
||||
height: var(--h-dialog-titlebar-mac, 40px);
|
||||
padding: 0 var(--space-4);
|
||||
}
|
||||
.popupHeader {
|
||||
height: 32px;
|
||||
@@ -107,54 +106,9 @@
|
||||
.macTitleBar .title {
|
||||
font-size: var(--fs-ui);
|
||||
}
|
||||
|
||||
/* NSWindow standard buttons: 12px, 8px apart; close red, minimise / zoom disabled (modal). */
|
||||
.lights {
|
||||
flex: none;
|
||||
display: inline-flex;
|
||||
gap: var(--space-2);
|
||||
}
|
||||
.light {
|
||||
position: relative;
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
padding: 0;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 50%;
|
||||
background: var(--traffic-off);
|
||||
box-shadow: inset 0 0 0 0.5px var(--traffic-off-border);
|
||||
cursor: default;
|
||||
}
|
||||
.lightClose {
|
||||
background: var(--traffic-close);
|
||||
box-shadow: inset 0 0 0 0.5px var(--traffic-close-border);
|
||||
}
|
||||
[data-inactive] .lightClose {
|
||||
background: var(--traffic-off);
|
||||
box-shadow: inset 0 0 0 0.5px var(--traffic-off-border);
|
||||
}
|
||||
.lightGlyph {
|
||||
--icon-color: var(--traffic-glyph);
|
||||
color: var(--traffic-glyph);
|
||||
opacity: 0;
|
||||
}
|
||||
.lights:hover .lightClose,
|
||||
.lightClose:focus-visible {
|
||||
background: var(--traffic-close);
|
||||
box-shadow: inset 0 0 0 0.5px var(--traffic-close-border);
|
||||
}
|
||||
.lights:hover .lightGlyph,
|
||||
.lightClose:focus-visible .lightGlyph {
|
||||
opacity: 1;
|
||||
}
|
||||
.lightClose:active {
|
||||
background: var(--traffic-close-pressed);
|
||||
}
|
||||
.lightClose:focus-visible {
|
||||
outline: 2px solid var(--focus-ring);
|
||||
outline-offset: 1px;
|
||||
/* An inactive window's title dims, as AppKit's does. */
|
||||
[data-inactive] .macTitleBar .title {
|
||||
color: var(--fg-muted);
|
||||
}
|
||||
|
||||
.body {
|
||||
@@ -187,6 +141,10 @@
|
||||
gap: var(--space-3);
|
||||
padding: 12px 16px;
|
||||
}
|
||||
/* macOS: the buttons sit in the content's corner, as in the dialog windows. */
|
||||
[data-platform="mac"] > .footer:not(.messageFooter) {
|
||||
padding-bottom: var(--space-4);
|
||||
}
|
||||
.footerStart {
|
||||
flex: 1 1 0;
|
||||
min-width: fit-content;
|
||||
|
||||
Reference in new issue
Заблокувати користувача