Replace the home header with the banner and the ring (#84)
CI / core (pull_request) Successful in 1m32s
CI / core (pull_request) Successful in 1m32s
The banner shows the ring, a cached view with one tick per champion of the Challenge in a fixed order, the Season, the « N / total champions validés » title, the last Completed champion and the last Match, over the splash of the last Completed champion, faded into the band. In a narrow window the ring goes above the text and the splash covers the banner. Hovering a card lights its tick. The banner reads its splash through its own cache: two at most, the one replaced given back from the GPU atlas too, none while « Statistiques » is shown or without an illustration. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WYQB8paBcLk67XoAUYARBK
This commit is contained in:
1 parent
e28aefc3bc
commit
d256dd61d2
9 files changed
+1397
-102
No files matched your search
@@ -30,6 +30,20 @@ pub fn gold_ink(theme: &Theme) -> Hsla {
|
||||
theme.link
|
||||
}
|
||||
|
||||
/// The pale gold of a played champion's tick on the ring.
|
||||
pub fn ring_played(theme: &Theme) -> Hsla {
|
||||
if theme.mode.is_dark() {
|
||||
Hsla::from(rgb(LOGO_GOLD)).opacity(0.34)
|
||||
} else {
|
||||
Hsla::from(rgb(0xd4920e)).opacity(0.4)
|
||||
}
|
||||
}
|
||||
|
||||
/// The faint tick of a never played champion.
|
||||
pub fn ring_never(theme: &Theme) -> Hsla {
|
||||
theme.switch
|
||||
}
|
||||
|
||||
struct HeadingFamily(SharedString);
|
||||
impl Global for HeadingFamily {}
|
||||
|
||||
|
||||
Reference in new issue
Block a user