-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from muzik-apps/app-player-redesign
App player redesign
- Loading branch information
Showing
22 changed files
with
852 additions
and
70 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
use tauri::Runtime; | ||
use tauri::LogicalSize; | ||
|
||
#[tauri::command] | ||
pub fn toggle_miniplayer_view<R: Runtime>(window: tauri::Window<R>, open_mini_player: bool){ | ||
if open_mini_player == true{ | ||
if is_os_windows() == false{ | ||
let _ = window.set_decorations(false); | ||
} | ||
let _ = window.set_resizable(false); | ||
let _ = window.set_size(LogicalSize::new(218.0, 376.0)); | ||
} | ||
else{ | ||
if is_os_windows() == false{ | ||
let _ = window.set_decorations(true); | ||
} | ||
let _ = window.set_resizable(true); | ||
let _ = window.set_size(LogicalSize::new(980.0, 623.0)); | ||
let _ = window.set_always_on_top(false); | ||
} | ||
} | ||
|
||
#[tauri::command] | ||
pub fn toggle_app_pin<R: Runtime>(window: tauri::Window<R>, pin_app: bool){ | ||
if pin_app == true{ | ||
let _ = window.set_always_on_top(true); | ||
} | ||
else{ | ||
let _ = window.set_always_on_top(false); | ||
} | ||
} | ||
|
||
fn is_os_windows() -> bool { | ||
if cfg!(target_os = "windows") { | ||
return true; | ||
} | ||
else{ | ||
return false; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pub mod controller; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
const ListIcon = () => { | ||
return ( | ||
<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg"> | ||
<path d="M9.2201 6H22.1001M9.2201 12.48H22.1001M9.2201 18.96H22.1001M4.1001 6V6.0128M4.1001 12.48V12.4928M4.1001 18.96V18.9728" stroke="#ECECEC" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/> | ||
</svg> | ||
) | ||
} | ||
|
||
export default ListIcon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.