дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-04 01:01:17 +02:00
Projects can show a custom icon instead of the coloured initials: an SVG or PNG in `.openidea/icon.*` (or IntelliJ's `.idea/icon.*`, with `icon_dark.*` used in dark themes). Change Project Icon… copies the chosen image there and Reset Project Icon removes it. The project context menu in the title bar project widget and on the Welcome screen now offers Change Project Color…, Change Project Icon… and Reset Project Icon for open projects as well as recent ones; the colour picker is a workbench overlay so it opens from any of these places. Fixes #5613
24 рядки
513 B
CSS
24 рядки
513 B
CSS
.badge {
|
|
display: flex;
|
|
flex: none;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 26px;
|
|
height: 26px;
|
|
border-radius: var(--radius-selection);
|
|
background: linear-gradient(135deg, var(--project-color), var(--project-color-end));
|
|
color: var(--fg-button-primary);
|
|
font-size: var(--fs-tiny);
|
|
font-weight: 600;
|
|
letter-spacing: 0.02em;
|
|
}
|
|
.badge:has(> img) {
|
|
background: none;
|
|
}
|
|
/* A project's own icon fills its avatar. */
|
|
.icon {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: contain;
|
|
}
|