Daylight bar chrome + embedded launcher, v0.7.5 pins #5
2 changed files with 9 additions and 0 deletions
|
|
@ -431,6 +431,9 @@ impl WorkspaceTrail {
|
|||
self.inner.borrow_mut().tick = Some(id);
|
||||
}
|
||||
|
||||
// `from` is a noun here (the source button we animate away from), not a
|
||||
// conversion — `&self` is correct.
|
||||
#[allow(clippy::wrong_self_convention)]
|
||||
fn from_geom(&self, from: Option<>k4::Button>, to: >k4::Button) -> Option<Geom> {
|
||||
let st = self.inner.borrow();
|
||||
let live = if self.pill.is_visible() && st.geom.w > 0.5 {
|
||||
|
|
|
|||
|
|
@ -217,10 +217,16 @@ pub struct App {
|
|||
// ── Stats bar ─────────────────────────────────────────────────────────
|
||||
// Island chrome matches the Liquid Motion demo: volume / wifi / battery
|
||||
// / hamburger. CPU/RAM/power live in the control panel, not on the bar.
|
||||
// Held to keep the control-panel sys-grid widgets alive for the App's
|
||||
// lifetime; their parent boxes own them, so they're never read back.
|
||||
#[allow(dead_code)]
|
||||
system_stats_box: gtk4::Box,
|
||||
system_sep: gtk4::Separator,
|
||||
#[allow(dead_code)]
|
||||
cpu_pair: gtk4::Box,
|
||||
#[allow(dead_code)]
|
||||
mem_pair: gtk4::Box,
|
||||
#[allow(dead_code)]
|
||||
pwr_pair: gtk4::Box,
|
||||
gpu_pair: gtk4::Box,
|
||||
cpu_lbl: gtk4::Label,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue