дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-27 21:12:34 +02:00
Compact Mode only lowered the title bar and narrowed the stripes: row heights, toolbar widgets and icons were fixed in code, and nothing in JS (where virtualised list row heights are set) could tell whether the mode was on. A small density store now mirrors the setting for JS, and Compact Mode uses IntelliJ's *.compact theme values: tree/list rows 22 (VCS log 24), toolbar widgets 26, toolbar and stripe icons 16, status bar 24, island gap 4, and chrome text 1px smaller. Co-authored-by: ChildishForces <[email protected]>
54 рядки
1.3 KiB
CSS
54 рядки
1.3 KiB
CSS
.button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--space-1);
|
|
min-width: 0;
|
|
white-space: nowrap;
|
|
border-radius: var(--radius-small);
|
|
transition:
|
|
background var(--dur-fast) var(--ease),
|
|
color var(--dur-fast) var(--ease);
|
|
}
|
|
.button:not(:disabled):hover,
|
|
.button[aria-expanded="true"] {
|
|
background: var(--bg-toolbar-hover);
|
|
color: var(--fg-strong);
|
|
}
|
|
.button:not(:disabled):active {
|
|
background: var(--bg-toolbar-pressed, color-mix(in srgb, var(--fg-strong) 12%, transparent));
|
|
}
|
|
.button:focus-visible {
|
|
outline: 2px solid var(--focus-ring);
|
|
outline-offset: -2px;
|
|
}
|
|
/* Status bar widget (StatusBar.Widget): UI font, secondary text, rounded hover. */
|
|
.status {
|
|
height: max(var(--h-statusbar) - 8px, var(--h-control-small));
|
|
margin: 0 -2px;
|
|
padding: 0 6px;
|
|
color: var(--fg-secondary);
|
|
font-size: var(--fs-chrome);
|
|
}
|
|
/* Main toolbar widget (project / VCS / run configuration). */
|
|
.title {
|
|
height: var(--h-toolbar-widget);
|
|
margin: 0 -4px;
|
|
padding: 0 8px;
|
|
border-radius: var(--radius-toolbar-dropdown);
|
|
color: var(--fg-strong);
|
|
}
|
|
.mono {
|
|
font-family: var(--font-mono);
|
|
font-size: var(--fs-small);
|
|
}
|
|
.emphasis {
|
|
color: var(--fg-strong);
|
|
font-weight: 600;
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.button {
|
|
transition: none;
|
|
}
|
|
}
|