дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-06 18:17:15 +02:00
Settings › Plugins gets Marketplace and Installed tabs again, centred in the page header with the gear menu; the Installed tab shows how many updates are available. Search (and the category filter on Marketplace) sits at the top of the list column, and the list and details fill the page under the header. Rows show a bold name, a 40px icon, and version, vendor (marketplace rows: downloads first) on the second line; the description moves to the details. Install / Update and the enable checkbox line up with the name, and an installed plugin's update is an Update button beside its checkbox. The details header lists tags, then the name, vendor, and the actions with the version, without the large icon. Settings pages can put controls beside their title through useSettingsHeaderSlot and fill the page edge to edge with `bleed`. Also adds the missing comma after "Add to Message" in en.json and zh.json, which kept the text catalog from parsing.
260 рядки
4.7 KiB
CSS
260 рядки
4.7 KiB
CSS
/* IDEA Settings: one flat dialog surface, sidebar split by a hairline, window-style title bar. */
|
|
.dialog {
|
|
height: min(720px, calc(100vh - 48px));
|
|
background: var(--bg-dialog, var(--bg-elev));
|
|
}
|
|
.layout {
|
|
height: 100%;
|
|
display: flex;
|
|
min-height: 0;
|
|
min-width: 0;
|
|
}
|
|
|
|
.sidebar {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 0;
|
|
}
|
|
.search {
|
|
margin: 7px 5px 6px;
|
|
}
|
|
.tree {
|
|
flex: 1;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding-bottom: 6px;
|
|
}
|
|
.node {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.topLevel {
|
|
font-weight: 600;
|
|
color: var(--fg-strong);
|
|
}
|
|
/* Selection stays blue and full-width even when the tree is not focused (IDEA settings tree). */
|
|
.tree [role="tree"] {
|
|
padding-inline: 0;
|
|
}
|
|
.tree [role="treeitem"] {
|
|
margin-inline: 0;
|
|
border-radius: 0;
|
|
}
|
|
.tree [role="treeitem"][aria-selected="true"] {
|
|
background: var(--bg-tree-selected);
|
|
}
|
|
.dirty {
|
|
color: var(--accent);
|
|
}
|
|
.noMatch {
|
|
padding: 8px 12px;
|
|
color: var(--fg-subtle);
|
|
}
|
|
|
|
.main {
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 0;
|
|
container: settings-content / inline-size;
|
|
}
|
|
.loading {
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 0;
|
|
color: var(--fg-subtle);
|
|
font-size: var(--fs-small);
|
|
}
|
|
.pageHeader {
|
|
flex: none;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: var(--space-3);
|
|
min-height: 40px;
|
|
padding: 0 12px 0 20px;
|
|
}
|
|
/* Controls a page puts beside its title (e.g. Plugins' tabs), centred in the header. */
|
|
.headerSlot {
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: var(--space-2);
|
|
min-width: 0;
|
|
}
|
|
.history {
|
|
display: inline-flex;
|
|
gap: var(--space-0-5);
|
|
}
|
|
.crumbs {
|
|
flex: 0 1 auto;
|
|
min-width: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
color: var(--fg-strong);
|
|
font-weight: 600;
|
|
}
|
|
.crumb:last-child {
|
|
min-width: 0;
|
|
}
|
|
.crumb > span {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
.crumb {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
}
|
|
.crumbSep {
|
|
margin: 0 4px;
|
|
color: var(--fg-subtle);
|
|
}
|
|
.reset {
|
|
flex: none;
|
|
padding: 0;
|
|
border: 0;
|
|
background: none;
|
|
color: var(--link);
|
|
font: inherit;
|
|
cursor: pointer;
|
|
}
|
|
.reset:hover {
|
|
color: var(--link-hover);
|
|
text-decoration: underline;
|
|
}
|
|
.reset:focus-visible {
|
|
outline: 2px solid var(--focus-ring, var(--accent));
|
|
}
|
|
.scope {
|
|
display: inline-flex;
|
|
flex: none;
|
|
padding: 2px;
|
|
border-radius: var(--radius-small);
|
|
box-shadow: inset 0 0 0 1px var(--border-strong);
|
|
}
|
|
.scopeButton {
|
|
height: var(--h-control-small);
|
|
padding: 0 10px;
|
|
border-radius: 3px;
|
|
color: var(--fg-muted);
|
|
font-size: var(--fs-small);
|
|
white-space: nowrap;
|
|
}
|
|
.scopeButton:hover {
|
|
color: var(--fg-emphasis);
|
|
}
|
|
.scopeOn {
|
|
background: var(--bg-active);
|
|
color: var(--fg-strong);
|
|
}
|
|
.scopeNote {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-1-5);
|
|
margin: 0 16px 6px;
|
|
color: var(--fg-subtle);
|
|
font-size: var(--fs-small);
|
|
}
|
|
.pageBody {
|
|
flex: 1;
|
|
min-height: 0;
|
|
overflow: auto;
|
|
padding: 4px 20px 20px;
|
|
-webkit-user-select: text;
|
|
user-select: text;
|
|
}
|
|
.pageBodyBleed {
|
|
padding: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.groupPage {
|
|
padding-top: 8px;
|
|
}
|
|
.groupDescription {
|
|
margin: 0 0 14px;
|
|
max-width: 720px;
|
|
color: var(--fg);
|
|
line-height: 1.45;
|
|
}
|
|
.groupLinks {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: var(--space-0-5);
|
|
padding-left: 32px;
|
|
}
|
|
.groupLink {
|
|
height: 20px;
|
|
padding: 0;
|
|
border: 0;
|
|
background: none;
|
|
color: var(--link);
|
|
font: inherit;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
}
|
|
.groupLink:hover {
|
|
color: var(--link-hover);
|
|
text-decoration: underline;
|
|
}
|
|
.groupLink:focus-visible {
|
|
outline: 2px solid var(--focus-ring, var(--accent));
|
|
}
|
|
|
|
.footerStatus {
|
|
flex: 1;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.error {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--space-1-5);
|
|
color: var(--danger);
|
|
}
|
|
|
|
/* Native Settings window (desktop): the same layout filling the window. */
|
|
.window {
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
background: var(--bg-dialog, var(--bg-elev));
|
|
color: var(--fg);
|
|
}
|
|
/* Linux: on Wayland GTK draws the frameless window's shadow (`decorate_csd` in
|
|
windows.rs), but frameless X11 windows have none, so mark the edge in CSS. */
|
|
.windowEdge {
|
|
position: relative;
|
|
}
|
|
.windowEdge::after {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: 1;
|
|
pointer-events: none;
|
|
box-shadow: inset 0 0 0 1px var(--border-window);
|
|
}
|
|
.windowBody {
|
|
flex: 1;
|
|
min-height: 0;
|
|
}
|
|
.windowFooter {
|
|
flex: none;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
gap: var(--space-3);
|
|
padding: 12px 16px;
|
|
}
|