Implement overall improvements for code stability, fallbacks and keyboard interactions

This commit is contained in:
2026-11-29 03:05:21 +01:00
parent fdde7f9d80
commit 7efc63d130
10 changed files with 1343 additions and 235 deletions
+2 -1
View File
@@ -7,7 +7,8 @@
<ui:VisualElement class="screen-frame-content">
<ui:VisualElement name="GachaContent" class="gacha-content">
<ui:VisualElement class="gacha-toolbar">
<ui:Button name="GachaPullHistoryButton" text="git log --pulls&#10;0 saved" class="terminal-button gacha-history-button" />
<ui:Label text="origin/kernel-panic · refs/remotes" class="gacha-toolbar-context" />
<ui:Button name="GachaPullHistoryButton" text="git log --pulls · 0 saved" class="terminal-button gacha-history-button" />
</ui:VisualElement>
<ui:VisualElement class="gacha-shell">
<ui:VisualElement name="GachaBannerList" class="gacha-banner-list" />
+218 -10
View File
@@ -541,17 +541,25 @@ Button {
.gacha-toolbar {
flex-direction: row;
justify-content: flex-end;
justify-content: space-between;
align-items: center;
flex-shrink: 0;
min-height: 38px;
margin-bottom: 8px;
}
.gacha-toolbar-context {
color: var(--kp-primary-dim);
font-size: var(--type-meta);
white-space: normal;
}
.gacha-history-button {
width: 220px;
width: auto;
min-width: 220px;
min-height: 38px;
margin: 0;
white-space: normal;
white-space: nowrap;
}
.gacha-shell {
@@ -600,6 +608,55 @@ Button {
padding: 16px;
}
.gacha-active-header {
flex-direction: row;
align-items: center;
justify-content: space-between;
min-width: 0;
margin-bottom: 10px;
padding-bottom: 10px;
border-bottom-width: 1px;
border-bottom-color: var(--kp-border);
}
.gacha-active-copy {
flex-grow: 1;
flex-shrink: 1;
min-width: 0;
}
.gacha-active-command {
color: var(--kp-cyan);
font-size: var(--type-meta);
white-space: normal;
margin-bottom: 3px;
}
.gacha-active-title {
color: var(--kp-text);
font-size: var(--type-title);
-unity-font-style: bold;
white-space: normal;
}
.gacha-active-status {
flex-shrink: 0;
margin-left: 16px;
padding: 4px 8px;
color: var(--kp-success);
background-color: var(--kp-bg-deep);
border-bottom-width: 1px;
border-bottom-color: var(--kp-success);
font-size: var(--type-meta);
-unity-font-style: bold;
white-space: nowrap;
}
.gacha-active-status.warning {
color: var(--kp-muted);
border-bottom-color: var(--kp-muted);
}
.gacha-banner-detail .kv-value {
max-width: none;
min-width: 0;
@@ -655,9 +712,9 @@ Button {
}
.gacha-hero {
height: 230px;
height: 146px;
margin-bottom: 12px;
padding: 10px;
padding: 6px 10px;
border-left-width: 1px;
border-right-width: 1px;
border-top-width: 1px;
@@ -675,6 +732,17 @@ Button {
flex-direction: row;
}
.gacha-hero-single .gacha-hero-art-row {
justify-content: center;
}
.gacha-hero-single .gacha-art-card {
width: 320px;
max-width: 320px;
flex-grow: 0;
margin-right: 0;
}
.gacha-art-card {
flex-grow: 1;
min-width: 0;
@@ -682,10 +750,26 @@ Button {
align-items: center;
}
.gacha-art-button {
padding: 0;
border-left-width: 0;
border-right-width: 0;
border-top-width: 0;
border-bottom-width: 1px;
border-bottom-color: transparent;
background-color: transparent;
}
.gacha-art-button:hover,
.gacha-art-button:focus {
border-bottom-color: var(--kp-cyan);
background-color: var(--kp-hover);
}
.gacha-art-shell {
flex-grow: 1;
min-height: 0;
height: 165px;
height: 104px;
width: 100%;
align-items: center;
justify-content: center;
@@ -696,14 +780,14 @@ Button {
.gacha-ascii-art {
width: 100%;
min-width: 0;
height: 165px;
font-size: 14px;
height: 104px;
font-size: 11px;
}
.gacha-art-card .ascii-placeholder,
.gacha-ascii-placeholder {
width: 150px;
height: 155px;
width: 104px;
height: 98px;
}
.gacha-art-name {
@@ -713,6 +797,23 @@ Button {
-unity-text-align: middle-center;
}
.gacha-art-cue {
width: 100%;
min-height: 22px;
align-items: center;
justify-content: center;
}
.gacha-art-ownership {
white-space: nowrap;
}
.gacha-art-inspect {
color: var(--kp-cyan);
font-size: 12px;
white-space: nowrap;
}
.gacha-hero-title {
color: var(--kp-muted);
font-size: 14px;
@@ -720,6 +821,101 @@ Button {
-unity-text-align: middle-center;
}
.gacha-counter-grid {
flex-direction: row;
flex-wrap: wrap;
align-items: stretch;
margin: 0 0 10px;
}
.gacha-progress-metric {
flex-grow: 1;
flex-shrink: 1;
flex-basis: 150px;
min-width: 135px;
margin: 0 8px 8px 0;
padding: 9px 10px;
background-color: var(--kp-bg-deep);
border-left-width: 2px;
border-left-color: var(--kp-border-strong);
}
.gacha-progress-metric.complete {
border-left-color: var(--kp-success);
}
.gacha-progress-label {
color: var(--kp-primary-dim);
font-size: var(--type-meta);
white-space: normal;
}
.gacha-progress-value {
color: var(--kp-text);
font-size: var(--type-section);
-unity-font-style: bold;
white-space: normal;
margin: 2px 0 5px;
}
.gacha-progress-track {
width: 100%;
height: 3px;
margin-bottom: 6px;
background-color: var(--kp-border);
}
.gacha-progress-fill {
height: 3px;
background-color: var(--kp-cyan);
}
.gacha-progress-metric.complete .gacha-progress-fill {
background-color: var(--kp-success);
}
.gacha-progress-detail {
color: var(--kp-muted);
font-size: var(--type-meta);
white-space: normal;
}
.gacha-pull-panel {
margin: 2px 0 10px;
padding: 10px 12px 8px;
background-color: var(--kp-panel);
border-top-width: 1px;
border-bottom-width: 1px;
border-top-color: var(--kp-border-strong);
border-bottom-color: var(--kp-border);
}
.gacha-pull-heading {
color: var(--kp-cyan);
font-size: var(--type-meta);
-unity-font-style: bold;
margin-bottom: 5px;
}
.gacha-pull-unavailable {
color: var(--kp-muted);
white-space: normal;
padding: 8px 0;
}
.gacha-odds {
margin-top: 4px;
color: var(--kp-muted);
font-size: var(--type-meta);
}
.gacha-odds-copy {
margin: 5px 0 2px 18px;
color: var(--kp-primary-dim);
font-size: var(--type-meta);
white-space: normal;
}
.gacha-rules {
color: var(--kp-muted);
white-space: normal;
@@ -744,6 +940,18 @@ Button {
-unity-text-align: middle-center;
}
.gacha-action-primary {
border-color: var(--kp-amber);
color: var(--kp-amber);
background-color: var(--kp-hover);
}
.gacha-action-secondary {
border-color: var(--kp-border-strong);
color: var(--kp-cyan);
background-color: transparent;
}
.gacha-result {
color: var(--kp-amber);
white-space: normal;