app: draw champion portraits, a 16:9 player and draggable scroll bars
Cards and the review header showed two initials where a champion portrait belongs. Data Dragon is fetched from a worker thread and cached under the user's cache directory, so the first sight of a champion puts its face on the card and later runs read it from disk; offline, the tile keeps its initials on the champion's colour. The review screen put the clip in a small box above two list columns. The clip now fills the window at 16:9 and the highlights and timeline open beside it on demand, so nothing shrinks the video by default and every event still marks the scrubber. Scroll bars were a thumb drawn over the cards that could not be dragged. They now sit in a strip the content leaves free, stay visible while the list overflows, and scroll the viewport when dragged.
This commit is contained in:
1 parent
3d0cad3312
commit
227aecb8f6
10 files changed
+500
-181
No files matched your search
@@ -222,11 +222,13 @@ pub fn view(app: &App, p: Paint) -> El {
|
||||
let kit = rune_kit::Kit::neutral(app.dark);
|
||||
let mut layer = Vec::new();
|
||||
|
||||
// The scroll bar gets its own strip at the end, clear of the cards.
|
||||
let content = col()
|
||||
.key("tab-content")
|
||||
.w_full()
|
||||
.gap(space::S6)
|
||||
.pb(space::S6);
|
||||
.pb(space::S6)
|
||||
.pr(14.0);
|
||||
let content = match app.settings_tab {
|
||||
SettingsTab::General => general(app, p, &kit, &mut layer, content),
|
||||
SettingsTab::Recording => recording(app, p, &kit, &mut layer, content),
|
||||
@@ -288,8 +290,8 @@ pub fn view(app: &App, p: Paint) -> El {
|
||||
.child(tabs(p, app))
|
||||
.child(
|
||||
app.scroll.follow(
|
||||
"scroller",
|
||||
col()
|
||||
.key("scroller")
|
||||
.w_full()
|
||||
.grow(1.0)
|
||||
.min_h(0.0)
|
||||
|
||||
Reference in new issue
Block a user