generated from emilk/eframe_template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
83 additions
and
22 deletions.
There are no files selected for viewing
Binary file added
BIN
+712 Bytes
assets/icons/expand_content_24dp_000000_FILL0_wght400_GRAD0_opsz24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
pub mod panel; | ||
pub mod timeline; | ||
|
||
pub use timeline::Timeline; |
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,7 @@ | ||
// TODO | ||
// reusable panel component with: | ||
// ________________ | ||
// [ title, actions ] | ||
// [ body ] | ||
// [ footer? ] | ||
// ________________ |
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
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 |
---|---|---|
|
@@ -28,4 +28,4 @@ impl Default for ChronoSphere { | |
fn default() -> Self { | ||
Self::new() | ||
} | ||
} | ||
} |
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,19 @@ | ||
|
||
use bevy::prelude::*; | ||
|
||
#[derive(Resource)] | ||
pub struct Fonts { | ||
pub bold: Handle<Font>, | ||
pub medium: Handle<Font>, | ||
} | ||
|
||
impl FromWorld for Fonts { | ||
fn from_world(world: &mut World) -> Self { | ||
let bold = world.resource::<AssetServer>().load("fonts/FiraSans-Bold.ttf"); | ||
let medium = world.resource::<AssetServer>().load("fonts/FiraMono-Medium.ttf"); | ||
Self { | ||
bold, | ||
medium, | ||
} | ||
} | ||
} |
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,19 @@ | ||
|
||
use bevy::prelude::*; | ||
|
||
#[derive(Resource)] | ||
pub struct Icons { | ||
pub collapse: Handle<Image>, | ||
pub expand: Handle<Image>, | ||
} | ||
|
||
impl FromWorld for Icons { | ||
fn from_world(world: &mut World) -> Self { | ||
let collapse = world.resource::<AssetServer>().load("icons/collapse_content_24dp_000000_FILL0_wght400_GRAD0_opsz24.png"); | ||
let expand = world.resource::<AssetServer>().load("icons/expand_content_24dp_000000_FILL0_wght400_GRAD0_opsz24.png"); | ||
Self { | ||
collapse, | ||
expand, | ||
} | ||
} | ||
} |
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,7 @@ | ||
pub mod chronosphere; | ||
pub mod fonts; | ||
pub mod icons; | ||
|
||
pub use chronosphere::ChronoSphere; | ||
pub use fonts::Fonts; | ||
pub use icons::Icons; |
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
TODO> | ||
add icon to toggle window decorations | ||
Reusable panel plugin. | ||
add icon to toggle side panel visibility | ||
HourBox adaptive render? active == bold | ||
Pomodoros! | ||
Features! | ||
- Pomodoros ftw. |