Compare commits
1
Commits
2e8b2e6a02
...
v0.6.4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
341ae614e1 |
@@ -2,6 +2,12 @@
|
|||||||
|
|
||||||
One section per version, newest first.
|
One section per version, newest first.
|
||||||
|
|
||||||
|
## v0.6.4 (2026-11-04)
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
- Settings has a Cover backdrop slider for how much of the cover shows behind the now-playing screen, from off to 100 in steps of 10. Left and right change it. The default looks as before, and the strongest setting still keeps the text readable over a bright cover.
|
||||||
|
|
||||||
## v0.6.3 (2026-11-04)
|
## v0.6.3 (2026-11-04)
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
|
|||||||
Generated
+1
-1
@@ -4385,7 +4385,7 @@ checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "remus"
|
name = "remus"
|
||||||
version = "0.6.3"
|
version = "0.6.4"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"directories",
|
"directories",
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "remus"
|
name = "remus"
|
||||||
version = "0.6.3"
|
version = "0.6.4"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
</supports>
|
</supports>
|
||||||
<content_rating type="oars-1.1"/>
|
<content_rating type="oars-1.1"/>
|
||||||
<releases>
|
<releases>
|
||||||
|
<release version="0.6.4" date="2026-11-04"/>
|
||||||
<release version="0.6.3" date="2026-11-04"/>
|
<release version="0.6.3" date="2026-11-04"/>
|
||||||
<release version="0.6.2" date="2026-11-04"/>
|
<release version="0.6.2" date="2026-11-04"/>
|
||||||
<release version="0.6.1" date="2026-11-04"/>
|
<release version="0.6.1" date="2026-11-04"/>
|
||||||
|
|||||||
+141
-10
@@ -124,6 +124,7 @@ enum Target {
|
|||||||
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
|
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
|
||||||
enum Setting {
|
enum Setting {
|
||||||
AlbumArtColours,
|
AlbumArtColours,
|
||||||
|
CoverBackdrop,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// How long the UI takes to change from one palette to the next.
|
/// How long the UI takes to change from one palette to the next.
|
||||||
@@ -338,6 +339,7 @@ impl App {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn start(&mut self) {
|
fn start(&mut self) {
|
||||||
|
self.render_backdrop();
|
||||||
let labels: Vec<SharedString> = SECTIONS.iter().map(|s| s.label().into()).collect();
|
let labels: Vec<SharedString> = SECTIONS.iter().map(|s| s.label().into()).collect();
|
||||||
self.ui.set_sections(ModelRc::new(VecModel::from(labels)));
|
self.ui.set_sections(ModelRc::new(VecModel::from(labels)));
|
||||||
|
|
||||||
@@ -576,6 +578,9 @@ impl App {
|
|||||||
_ => {}
|
_ => {}
|
||||||
},
|
},
|
||||||
Area::Content => match a {
|
Area::Content => match a {
|
||||||
|
Action::Left | Action::Right if let Some(s) = self.selected_range_setting() => {
|
||||||
|
self.adjust_setting(s, a == Action::Right)
|
||||||
|
}
|
||||||
Action::Up | Action::Down | Action::Left | Action::Right | Action::PageUp | Action::PageDown => {
|
Action::Up | Action::Down | Action::Left | Action::Right | Action::PageUp | Action::PageDown => {
|
||||||
self.move_sel(a)
|
self.move_sel(a)
|
||||||
}
|
}
|
||||||
@@ -871,12 +876,43 @@ impl App {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// The range setting under the selection, which left and right adjust.
|
||||||
|
fn selected_range_setting(&self) -> Option<Setting> {
|
||||||
|
let page = self.current_page()?;
|
||||||
|
match page.entries.get(page.sel)?.target {
|
||||||
|
Target::Setting(s @ Setting::CoverBackdrop) => Some(s),
|
||||||
|
_ => None,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// ---------------------------------------------------------------- settings
|
// ---------------------------------------------------------------- settings
|
||||||
|
|
||||||
fn toggle_setting(&mut self, setting: Setting) {
|
fn toggle_setting(&mut self, setting: Setting) {
|
||||||
match setting {
|
match setting {
|
||||||
Setting::AlbumArtColours => self.settings.album_art_colours = !self.settings.album_art_colours,
|
Setting::AlbumArtColours => self.settings.album_art_colours = !self.settings.album_art_colours,
|
||||||
|
// A range: left and right change it, confirm does nothing.
|
||||||
|
Setting::CoverBackdrop => return,
|
||||||
}
|
}
|
||||||
|
self.settings_changed();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Moves a range setting one step up or down.
|
||||||
|
fn adjust_setting(&mut self, setting: Setting, up: bool) {
|
||||||
|
match setting {
|
||||||
|
Setting::CoverBackdrop => {
|
||||||
|
let v = step_backdrop(self.settings.cover_backdrop, up);
|
||||||
|
if v == self.settings.cover_backdrop {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
self.settings.cover_backdrop = v;
|
||||||
|
}
|
||||||
|
Setting::AlbumArtColours => return,
|
||||||
|
}
|
||||||
|
self.settings_changed();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Saves the settings and shows what they change.
|
||||||
|
fn settings_changed(&mut self) {
|
||||||
if let Err(e) = config::save_settings(&self.settings) {
|
if let Err(e) = config::save_settings(&self.settings) {
|
||||||
self.toast(format!("Could not save settings: {e:#}"));
|
self.toast(format!("Could not save settings: {e:#}"));
|
||||||
}
|
}
|
||||||
@@ -888,9 +924,17 @@ impl App {
|
|||||||
self.sync_items(true);
|
self.sync_items(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
self.render_backdrop();
|
||||||
self.update_theme();
|
self.update_theme();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn render_backdrop(&self) {
|
||||||
|
let (opacity, left, right) = backdrop_look(self.settings.cover_backdrop);
|
||||||
|
self.ui.set_np_backdrop_opacity(opacity);
|
||||||
|
self.ui.set_np_backdrop_left(left);
|
||||||
|
self.ui.set_np_backdrop_right(right);
|
||||||
|
}
|
||||||
|
|
||||||
// ---------------------------------------------------------------- theme
|
// ---------------------------------------------------------------- theme
|
||||||
|
|
||||||
/// The palette the UI should show: from the playing track's cover when
|
/// The palette the UI should show: from the playing track's cover when
|
||||||
@@ -1299,6 +1343,10 @@ impl App {
|
|||||||
_ => false,
|
_ => false,
|
||||||
};
|
};
|
||||||
let cover = entry.cover.as_deref().and_then(|id| self.cover(id, px));
|
let cover = entry.cover.as_deref().and_then(|id| self.cover(id, px));
|
||||||
|
let level = match entry.target {
|
||||||
|
Target::Setting(Setting::CoverBackdrop) => Some(self.settings.cover_backdrop as f32 / 100.0),
|
||||||
|
_ => None,
|
||||||
|
};
|
||||||
Some(Item {
|
Some(Item {
|
||||||
index: index as i32,
|
index: index as i32,
|
||||||
letter: initial(&entry.title).into(),
|
letter: initial(&entry.title).into(),
|
||||||
@@ -1312,6 +1360,8 @@ impl App {
|
|||||||
round: entry.round,
|
round: entry.round,
|
||||||
show_art: entry.show_art,
|
show_art: entry.show_art,
|
||||||
playing,
|
playing,
|
||||||
|
slider: level.is_some(),
|
||||||
|
level: level.unwrap_or_default(),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1355,6 +1405,7 @@ impl App {
|
|||||||
.map(|e| &e.target);
|
.map(|e| &e.target);
|
||||||
match target {
|
match target {
|
||||||
Some(Target::Song(_)) => h(Control::Activate, "Play"),
|
Some(Target::Song(_)) => h(Control::Activate, "Play"),
|
||||||
|
Some(Target::Setting(Setting::CoverBackdrop)) => h(Control::Seek, "Adjust"),
|
||||||
Some(Target::Setting(_)) => h(Control::Activate, "Change"),
|
Some(Target::Setting(_)) => h(Control::Activate, "Change"),
|
||||||
Some(_) => h(Control::Activate, "Open"),
|
Some(_) => h(Control::Activate, "Open"),
|
||||||
None if self.current_page().is_some_and(|p| p.error.is_some()) => {
|
None if self.current_page().is_some_and(|p| p.error.is_some()) => {
|
||||||
@@ -2010,6 +2061,8 @@ impl App {
|
|||||||
round: false,
|
round: false,
|
||||||
show_art: true,
|
show_art: true,
|
||||||
playing: Some(index) == self.current,
|
playing: Some(index) == self.current,
|
||||||
|
slider: false,
|
||||||
|
level: 0.0,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2098,20 +2151,70 @@ fn song_entry(s: &Song, index: usize) -> Entry {
|
|||||||
fn settings_data(s: &Settings) -> PageData {
|
fn settings_data(s: &Settings) -> PageData {
|
||||||
let on_off = |on: bool| if on { "On" } else { "Off" }.to_string();
|
let on_off = |on: bool| if on { "On" } else { "Off" }.to_string();
|
||||||
PageData {
|
PageData {
|
||||||
entries: vec![Entry {
|
entries: vec![
|
||||||
title: "Colours from album art".to_string(),
|
Entry {
|
||||||
subtitle: "Tint the interface with the cover of the playing track".to_string(),
|
title: "Colours from album art".to_string(),
|
||||||
detail: on_off(s.album_art_colours),
|
subtitle: "Tint the interface with the cover of the playing track".to_string(),
|
||||||
number: String::new(),
|
detail: on_off(s.album_art_colours),
|
||||||
cover: None,
|
number: String::new(),
|
||||||
round: false,
|
cover: None,
|
||||||
show_art: false,
|
round: false,
|
||||||
target: Target::Setting(Setting::AlbumArtColours),
|
show_art: false,
|
||||||
}],
|
target: Target::Setting(Setting::AlbumArtColours),
|
||||||
|
},
|
||||||
|
Entry {
|
||||||
|
title: "Cover backdrop".to_string(),
|
||||||
|
subtitle: "How much of the cover shows behind the now-playing screen".to_string(),
|
||||||
|
detail: if s.cover_backdrop == 0 {
|
||||||
|
"Off".to_string()
|
||||||
|
} else {
|
||||||
|
s.cover_backdrop.to_string()
|
||||||
|
},
|
||||||
|
number: String::new(),
|
||||||
|
cover: None,
|
||||||
|
round: false,
|
||||||
|
show_art: false,
|
||||||
|
target: Target::Setting(Setting::CoverBackdrop),
|
||||||
|
},
|
||||||
|
],
|
||||||
..Default::default()
|
..Default::default()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// One step of the cover backdrop setting, kept within 0 to 100.
|
||||||
|
fn step_backdrop(v: u8, up: bool) -> u8 {
|
||||||
|
let v = v.min(100);
|
||||||
|
if up { (v + 10).min(100) } else { v.saturating_sub(10) }
|
||||||
|
}
|
||||||
|
|
||||||
|
/// The now-playing backdrop for a strength of 0 to 100: the cover's opacity
|
||||||
|
/// and the background alpha over it at the left and right edges.
|
||||||
|
///
|
||||||
|
/// Up to the default the cover fades in under today's overlay. Above it the
|
||||||
|
/// overlay thins too, but never below 0.55 on the left, where the title and
|
||||||
|
/// progress are, so the text stays readable over a bright cover.
|
||||||
|
fn backdrop_look(v: u8) -> (f32, f32, f32) {
|
||||||
|
// Today's look, reached at the default.
|
||||||
|
const OPACITY: f32 = 0.16;
|
||||||
|
const LEFT: f32 = 0.67;
|
||||||
|
const RIGHT: f32 = 0.95;
|
||||||
|
// The strongest, at 100.
|
||||||
|
const OPACITY_MAX: f32 = 0.40;
|
||||||
|
const LEFT_MIN: f32 = 0.55;
|
||||||
|
const RIGHT_MIN: f32 = 0.80;
|
||||||
|
let v = v.min(100) as f32;
|
||||||
|
let d = config::COVER_BACKDROP_DEFAULT as f32;
|
||||||
|
if v <= d {
|
||||||
|
return (OPACITY * v / d, LEFT, RIGHT);
|
||||||
|
}
|
||||||
|
let u = (v - d) / (100.0 - d);
|
||||||
|
(
|
||||||
|
OPACITY + u * (OPACITY_MAX - OPACITY),
|
||||||
|
LEFT + u * (LEFT_MIN - LEFT),
|
||||||
|
RIGHT + u * (RIGHT_MIN - RIGHT),
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
fn search_data(r: SearchResult) -> PageData {
|
fn search_data(r: SearchResult) -> PageData {
|
||||||
let mut entries: Vec<Entry> = r.artist.into_iter().map(artist_entry).collect();
|
let mut entries: Vec<Entry> = r.artist.into_iter().map(artist_entry).collect();
|
||||||
entries.extend(r.album.into_iter().map(|a| Entry {
|
entries.extend(r.album.into_iter().map(|a| Entry {
|
||||||
@@ -2293,6 +2396,34 @@ mod tests {
|
|||||||
assert_ne!(a, c);
|
assert_ne!(a, c);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn default_backdrop_looks_like_before_it_was_a_setting() {
|
||||||
|
assert_eq!(backdrop_look(config::COVER_BACKDROP_DEFAULT), (0.16, 0.67, 0.95));
|
||||||
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn backdrop_off_draws_no_cover() {
|
||||||
|
assert_eq!(backdrop_look(0).0, 0.0);
|
||||||
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn backdrop_strongest_keeps_an_overlay() {
|
||||||
|
let (opacity, left, right) = backdrop_look(100);
|
||||||
|
assert!((opacity - 0.40).abs() < 1e-6);
|
||||||
|
assert!((left - 0.55).abs() < 1e-6);
|
||||||
|
assert!((right - 0.80).abs() < 1e-6);
|
||||||
|
assert_eq!(backdrop_look(250), backdrop_look(100));
|
||||||
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn backdrop_steps_stay_in_range() {
|
||||||
|
assert_eq!(step_backdrop(30, true), 40);
|
||||||
|
assert_eq!(step_backdrop(30, false), 20);
|
||||||
|
assert_eq!(step_backdrop(100, true), 100);
|
||||||
|
assert_eq!(step_backdrop(0, false), 0);
|
||||||
|
assert_eq!(step_backdrop(200, false), 90);
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn grid_window_is_row_aligned() {
|
fn grid_window_is_row_aligned() {
|
||||||
assert_eq!(window(1000, 0, 5, false), (0, 55));
|
assert_eq!(window(1000, 0, 5, false), (0, 55));
|
||||||
|
|||||||
+24
-1
@@ -88,11 +88,25 @@ pub fn save(cfg: &Config) -> Result<()> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Preferences. Kept apart from the login, so logging out does not reset them.
|
/// Preferences. Kept apart from the login, so logging out does not reset them.
|
||||||
#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
|
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
pub struct Settings {
|
pub struct Settings {
|
||||||
/// Tint the UI with the colours of the playing track's cover.
|
/// Tint the UI with the colours of the playing track's cover.
|
||||||
pub album_art_colours: bool,
|
pub album_art_colours: bool,
|
||||||
|
/// How strongly the cover shows behind the now-playing screen, 0 to 100.
|
||||||
|
pub cover_backdrop: u8,
|
||||||
|
}
|
||||||
|
|
||||||
|
/// The cover backdrop strength that looks like it did before it was a setting.
|
||||||
|
pub const COVER_BACKDROP_DEFAULT: u8 = 30;
|
||||||
|
|
||||||
|
impl Default for Settings {
|
||||||
|
fn default() -> Self {
|
||||||
|
Settings {
|
||||||
|
album_art_colours: false,
|
||||||
|
cover_backdrop: COVER_BACKDROP_DEFAULT,
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn settings_path() -> Option<PathBuf> {
|
fn settings_path() -> Option<PathBuf> {
|
||||||
@@ -193,12 +207,21 @@ mod tests {
|
|||||||
let s: Settings = toml::from_str("").unwrap();
|
let s: Settings = toml::from_str("").unwrap();
|
||||||
assert_eq!(s, Settings::default());
|
assert_eq!(s, Settings::default());
|
||||||
assert!(!s.album_art_colours);
|
assert!(!s.album_art_colours);
|
||||||
|
assert_eq!(s.cover_backdrop, COVER_BACKDROP_DEFAULT);
|
||||||
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn settings_from_before_the_backdrop_load_its_default() {
|
||||||
|
let s: Settings = toml::from_str("album_art_colours = true\n").unwrap();
|
||||||
|
assert!(s.album_art_colours);
|
||||||
|
assert_eq!(s.cover_backdrop, COVER_BACKDROP_DEFAULT);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn settings_round_trip() {
|
fn settings_round_trip() {
|
||||||
let s = Settings {
|
let s = Settings {
|
||||||
album_art_colours: true,
|
album_art_colours: true,
|
||||||
|
cover_backdrop: 70,
|
||||||
};
|
};
|
||||||
let back: Settings = toml::from_str(&toml::to_string(&s).unwrap()).unwrap();
|
let back: Settings = toml::from_str(&toml::to_string(&s).unwrap()).unwrap();
|
||||||
assert_eq!(back, s);
|
assert_eq!(back, s);
|
||||||
|
|||||||
+45
-3
@@ -27,6 +27,9 @@ export struct Item {
|
|||||||
round: bool,
|
round: bool,
|
||||||
show-art: bool,
|
show-art: bool,
|
||||||
playing: bool,
|
playing: bool,
|
||||||
|
// A setting with a range: draws `level` (0 to 1) as a slider before `detail`.
|
||||||
|
slider: bool,
|
||||||
|
level: float,
|
||||||
}
|
}
|
||||||
|
|
||||||
export struct Header {
|
export struct Header {
|
||||||
@@ -237,10 +240,38 @@ component Row inherits Rectangle {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if root.item.slider: VerticalLayout {
|
||||||
|
alignment: center;
|
||||||
|
Rectangle {
|
||||||
|
width: 180px * Theme.s;
|
||||||
|
height: 6px * Theme.s;
|
||||||
|
border-radius: 3px * Theme.s;
|
||||||
|
background: Theme.line;
|
||||||
|
Rectangle {
|
||||||
|
x: 0;
|
||||||
|
width: parent.width * root.item.level;
|
||||||
|
border-radius: 3px * Theme.s;
|
||||||
|
background: root.selected && root.active ? Theme.highlight : Theme.muted;
|
||||||
|
animate width { duration: 120ms; easing: ease-out; }
|
||||||
|
}
|
||||||
|
Rectangle {
|
||||||
|
x: parent.width * root.item.level - self.width / 2;
|
||||||
|
width: 16px * Theme.s;
|
||||||
|
height: 16px * Theme.s;
|
||||||
|
border-radius: 8px * Theme.s;
|
||||||
|
background: root.selected && root.active ? Theme.text : Theme.muted;
|
||||||
|
animate x { duration: 120ms; easing: ease-out; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
|
// Fixed for a slider, so the bar does not shift as the number grows.
|
||||||
|
min-width: root.item.slider ? 44px * Theme.s : 0;
|
||||||
text: root.item.detail;
|
text: root.item.detail;
|
||||||
font-size: 15px * Theme.s;
|
font-size: 15px * Theme.s;
|
||||||
color: Theme.muted;
|
color: Theme.muted;
|
||||||
|
horizontal-alignment: right;
|
||||||
vertical-alignment: center;
|
vertical-alignment: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -756,6 +787,11 @@ component NowPlayingView inherits Rectangle {
|
|||||||
in property <string> duration;
|
in property <string> duration;
|
||||||
in property <bool> paused;
|
in property <bool> paused;
|
||||||
in property <bool> has-track;
|
in property <bool> has-track;
|
||||||
|
// From the cover backdrop setting: the blown-up cover's opacity and the
|
||||||
|
// alpha of the background drawn over it, at the left and right edges.
|
||||||
|
in property <float> backdrop-opacity: 0.16;
|
||||||
|
in property <float> backdrop-left: 0.67;
|
||||||
|
in property <float> backdrop-right: 0.95;
|
||||||
// True while the cover turns away; the app swaps the cover at edge-on and
|
// True while the cover turns away; the app swaps the cover at edge-on and
|
||||||
// sets it back to false to turn the new one in.
|
// sets it back to false to turn the new one in.
|
||||||
in property <bool> flip-out;
|
in property <bool> flip-out;
|
||||||
@@ -768,15 +804,15 @@ component NowPlayingView inherits Rectangle {
|
|||||||
out property <length> art-size: 440px * Theme.s;
|
out property <length> art-size: 440px * Theme.s;
|
||||||
|
|
||||||
// Blown-up cover as a dim backdrop.
|
// Blown-up cover as a dim backdrop.
|
||||||
if root.has-cover: Image {
|
if root.has-cover && root.backdrop-opacity > 0: Image {
|
||||||
width: parent.width;
|
width: parent.width;
|
||||||
height: parent.height;
|
height: parent.height;
|
||||||
source: root.cover;
|
source: root.cover;
|
||||||
image-fit: ImageFit.cover;
|
image-fit: ImageFit.cover;
|
||||||
opacity: 0.16;
|
opacity: root.backdrop-opacity;
|
||||||
}
|
}
|
||||||
Rectangle {
|
Rectangle {
|
||||||
background: @linear-gradient(90deg, Theme.bg.with-alpha(0.67), Theme.bg.with-alpha(0.95));
|
background: @linear-gradient(90deg, Theme.bg.with-alpha(root.backdrop-left), Theme.bg.with-alpha(root.backdrop-right));
|
||||||
}
|
}
|
||||||
|
|
||||||
HorizontalLayout {
|
HorizontalLayout {
|
||||||
@@ -956,6 +992,9 @@ export component AppWindow inherits Window {
|
|||||||
in property <string> np-duration;
|
in property <string> np-duration;
|
||||||
in property <bool> np-paused;
|
in property <bool> np-paused;
|
||||||
in property <bool> np-flip-out;
|
in property <bool> np-flip-out;
|
||||||
|
in property <float> np-backdrop-opacity: 0.16;
|
||||||
|
in property <float> np-backdrop-left: 0.67;
|
||||||
|
in property <float> np-backdrop-right: 0.95;
|
||||||
in property <[Item]> queue-items;
|
in property <[Item]> queue-items;
|
||||||
in property <int> queue-count;
|
in property <int> queue-count;
|
||||||
in property <int> queue-selected;
|
in property <int> queue-selected;
|
||||||
@@ -1118,6 +1157,9 @@ export component AppWindow inherits Window {
|
|||||||
paused: root.np-paused;
|
paused: root.np-paused;
|
||||||
has-track: root.np-has-track;
|
has-track: root.np-has-track;
|
||||||
flip-out: root.np-flip-out;
|
flip-out: root.np-flip-out;
|
||||||
|
backdrop-opacity: root.np-backdrop-opacity;
|
||||||
|
backdrop-left: root.np-backdrop-left;
|
||||||
|
backdrop-right: root.np-backdrop-right;
|
||||||
queue: root.queue-items;
|
queue: root.queue-items;
|
||||||
queue-count: root.queue-count;
|
queue-count: root.queue-count;
|
||||||
queue-selected: root.queue-selected;
|
queue-selected: root.queue-selected;
|
||||||
|
|||||||
Reference in New Issue
Block a user