Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ jobs:
if: matrix.os == 'windows-latest'
run: |
cargo install cargo-wix
winget install --id WiXToolset.WiXToolset -e
cargo wix --no-build

- name: Upload Release Asset (Windows)
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/target/*
*/target/*
.env
*.exe
*.bat
Expand Down
23 changes: 21 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 9 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
[package]
name = "MusStream"
version = "0.1.0"
version = "0.2.1"
edition = "2024"

package.metadata.wix.eula = false
package.license = 'MIT'
authors = ["Francium Software"]


[dependencies]
rodio = {
version="0.22.2",
Expand All @@ -29,14 +34,14 @@ csv = "1.4.0"

[build-dependencies]
slint-build = "1.17.0"
winres = "0.1.12"


[package.metadata.bundle]
name = "MusStream"
identifier = "con.franciumsoftware.musstream"
identifier = "com.franciumsoftware.musstream"
icon = ["icons/32x32.png", "icons/128x128.png", "icons/128x128@2x.png"]
version = "α0.2"
resources = ["assets", "images/**/*.png", "secrets/public_key.txt"]
version = "0.2.0"
copyright = "Copyright (c) Francium Software read the license."
category = "Music"
short_description = "A music streaming application."
Expand Down
8 changes: 6 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
extern crate winres;
fn main() {
slint_build::compile("ui/mainwindow.slint").unwrap();

#[cfg(target_os = "windows")]
println!(r"cargo:rustc-link-search=native=C:\Program Files\VideoLAN\VLC");
if cfg!(target_os = "windows") {
let mut res = winres::WindowsResource::new();
res.set_icon("icons/128x128@2x.ico");
res.compile().unwrap();
}
}
3 changes: 0 additions & 3 deletions ui/components/iconButton.slint
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ export component IconButton inherits Rectangle {
in property <length> font-size;
background: root.background-color;
border-radius: root.radius;
inner-shadow-spread: touch.has-hover ? 10px : 0px;
inner-shadow-blur: 5px;
inner-shadow-color: black;
callback clicked();


Expand Down
2 changes: 1 addition & 1 deletion ui/components/sidebar.slint
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export component SidebarItem inherits Rectangle {
Text {
text: label;
// Le texte s'illumine aussi si l'élément a le focus
color: (active || scope.has-focus) ? Theme.text-color : Theme.text-color-disabled;
color: Theme.text-color;
font-size: 20pt;
horizontal-alignment: left;
}
Expand Down
2 changes: 1 addition & 1 deletion ui/pages/sources.slint
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export component SourcePage inherits Rectangle {
width: 100%;
height: 50px;
Rectangle {
background: Theme.background-second;
background: Theme.background-item;
border-radius: 10px;
HorizontalLayout {
padding-left: 10px;
Expand Down
7 changes: 4 additions & 3 deletions ui/properties.slint
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ export global Theme {
in-out property <bool> dark-mode: Palette.color-scheme == ColorScheme.dark;

out property <color> background-first: dark-mode ? #1a1a1f : #ffffff;
out property <color> background-second: dark-mode ? #15151a : #dedede;
out property <color> background-third: dark-mode ? #101015 : #cdcdcd;
out property <color> accent-color: dark-mode ? #0DBA0Bff : #05a12dff;
out property <color> background-second: dark-mode ? #15151a : #fafafa;
out property <color> background-third: dark-mode ? #101015 : #f5f5f5;
out property <color> background-item: dark-mode ? #101015 : #efefef;
out property <color> accent-color: dark-mode ? #0DBA0Bff : #0bd93e;
out property <color> text-color: dark-mode ? #ffffff : #000000;
out property <color> text-color-disabled: dark-mode ? #888888 : #555555;
out property <color> background-warning: dark-mode ? #1a1a1faa : #ffffffaa;
Expand Down
Binary file added wix/images/banner.bmp
Binary file not shown.
229 changes: 229 additions & 0 deletions wix/images/banner.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added wix/images/dialog.bmp
Binary file not shown.
Loading
Loading