-
-
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
1 parent
6a5366b
commit 3a1b57d
Showing
10 changed files
with
229 additions
and
21 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#:kivy 2.2.1 | ||
#:import PATH_IMAGES tools.path.PATH_IMAGES | ||
#:import PATH_TITLE_FONT tools.path.PATH_TITLE_FONT | ||
#:import TITLE_FONT_SIZE tools.constants.TITLE_FONT_SIZE | ||
#:import TITLE_OUTLINE_WIDTH tools.constants.TITLE_OUTLINE_WIDTH | ||
#:import TITLE_OUTLINE_COLOR tools.constants.TITLE_OUTLINE_COLOR | ||
#:import PATH_TEXT_FONT tools.path.PATH_TEXT_FONT | ||
#:import TEXT_FONT_COLOR tools.constants.TEXT_FONT_COLOR | ||
#:import BOTTOM_BAR_HEIGHT tools.constants.BOTTOM_BAR_HEIGHT | ||
|
||
|
||
<CustomizationScreen>: | ||
Label: | ||
text: "TO DO" | ||
font_name: PATH_TITLE_FONT | ||
font_size: TITLE_FONT_SIZE * root.font_ratio | ||
pos_hint: {"center_x":0.5, "center_y":0.9} | ||
outline_width: TITLE_OUTLINE_WIDTH | ||
outline_color: TITLE_OUTLINE_COLOR | ||
color: TEXT_FONT_COLOR | ||
|
||
BottomBar: | ||
size_hint: (1, BOTTOM_BAR_HEIGHT) | ||
pos_hint: {"bottom":0,"left":0} | ||
selected: "customization" | ||
|
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,38 @@ | ||
""" | ||
Module to create the customization screen. | ||
""" | ||
|
||
############### | ||
### Imports ### | ||
############### | ||
|
||
from tools.path import ( | ||
PATH_BACKGROUNDS | ||
) | ||
from tools.constants import ( | ||
USER_DATA, | ||
THEMES_DICT | ||
) | ||
from screens.custom_widgets import ( | ||
BottomBar, | ||
CustomButton | ||
) | ||
from tools.kivy_tools import ( | ||
ImprovedScreen, | ||
ImageButton | ||
) | ||
|
||
|
||
############# | ||
### Class ### | ||
############# | ||
|
||
|
||
class CustomizationScreen(ImprovedScreen): | ||
|
||
def __init__(self, **kwargs) -> None: | ||
current_background_theme = USER_DATA.settings["current_background_theme"] | ||
super().__init__( | ||
back_image_path=PATH_BACKGROUNDS + | ||
THEMES_DICT[current_background_theme]["image"], | ||
**kwargs) |
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,26 @@ | ||
#:kivy 2.2.1 | ||
#:import PATH_IMAGES tools.path.PATH_IMAGES | ||
#:import PATH_TITLE_FONT tools.path.PATH_TITLE_FONT | ||
#:import TITLE_FONT_SIZE tools.constants.TITLE_FONT_SIZE | ||
#:import TITLE_OUTLINE_WIDTH tools.constants.TITLE_OUTLINE_WIDTH | ||
#:import TITLE_OUTLINE_COLOR tools.constants.TITLE_OUTLINE_COLOR | ||
#:import PATH_TEXT_FONT tools.path.PATH_TEXT_FONT | ||
#:import TEXT_FONT_COLOR tools.constants.TEXT_FONT_COLOR | ||
#:import BOTTOM_BAR_HEIGHT tools.constants.BOTTOM_BAR_HEIGHT | ||
|
||
|
||
<ProfileScreen>: | ||
Label: | ||
text: "TO DO" | ||
font_name: PATH_TITLE_FONT | ||
font_size: TITLE_FONT_SIZE * root.font_ratio | ||
pos_hint: {"center_x":0.5, "center_y":0.9} | ||
outline_width: TITLE_OUTLINE_WIDTH | ||
outline_color: TITLE_OUTLINE_COLOR | ||
color: TEXT_FONT_COLOR | ||
|
||
BottomBar: | ||
size_hint: (1, BOTTOM_BAR_HEIGHT) | ||
pos_hint: {"bottom":0,"left":0} | ||
selected: "profile" | ||
|
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,38 @@ | ||
""" | ||
Module to create the profile screen. | ||
""" | ||
|
||
############### | ||
### Imports ### | ||
############### | ||
|
||
from tools.path import ( | ||
PATH_BACKGROUNDS | ||
) | ||
from tools.constants import ( | ||
USER_DATA, | ||
THEMES_DICT | ||
) | ||
from screens.custom_widgets import ( | ||
BottomBar, | ||
CustomButton | ||
) | ||
from tools.kivy_tools import ( | ||
ImprovedScreen, | ||
ImageButton | ||
) | ||
|
||
|
||
############# | ||
### Class ### | ||
############# | ||
|
||
|
||
class ProfileScreen(ImprovedScreen): | ||
|
||
def __init__(self, **kwargs) -> None: | ||
current_background_theme = USER_DATA.settings["current_background_theme"] | ||
super().__init__( | ||
back_image_path=PATH_BACKGROUNDS + | ||
THEMES_DICT[current_background_theme]["image"], | ||
**kwargs) |
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,26 @@ | ||
#:kivy 2.2.1 | ||
#:import PATH_IMAGES tools.path.PATH_IMAGES | ||
#:import PATH_TITLE_FONT tools.path.PATH_TITLE_FONT | ||
#:import TITLE_FONT_SIZE tools.constants.TITLE_FONT_SIZE | ||
#:import TITLE_OUTLINE_WIDTH tools.constants.TITLE_OUTLINE_WIDTH | ||
#:import TITLE_OUTLINE_COLOR tools.constants.TITLE_OUTLINE_COLOR | ||
#:import PATH_TEXT_FONT tools.path.PATH_TEXT_FONT | ||
#:import TEXT_FONT_COLOR tools.constants.TEXT_FONT_COLOR | ||
#:import BOTTOM_BAR_HEIGHT tools.constants.BOTTOM_BAR_HEIGHT | ||
|
||
|
||
<SettingsScreen>: | ||
Label: | ||
text: "TO DO" | ||
font_name: PATH_TITLE_FONT | ||
font_size: TITLE_FONT_SIZE * root.font_ratio | ||
pos_hint: {"center_x":0.5, "center_y":0.9} | ||
outline_width: TITLE_OUTLINE_WIDTH | ||
outline_color: TITLE_OUTLINE_COLOR | ||
color: TEXT_FONT_COLOR | ||
|
||
BottomBar: | ||
size_hint: (1, BOTTOM_BAR_HEIGHT) | ||
pos_hint: {"bottom":0,"left":0} | ||
selected: "settings" | ||
|
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,38 @@ | ||
""" | ||
Module to create the settings screen. | ||
""" | ||
|
||
############### | ||
### Imports ### | ||
############### | ||
|
||
from tools.path import ( | ||
PATH_BACKGROUNDS | ||
) | ||
from tools.constants import ( | ||
USER_DATA, | ||
THEMES_DICT | ||
) | ||
from screens.custom_widgets import ( | ||
BottomBar, | ||
CustomButton | ||
) | ||
from tools.kivy_tools import ( | ||
ImprovedScreen, | ||
ImageButton | ||
) | ||
|
||
|
||
############# | ||
### Class ### | ||
############# | ||
|
||
|
||
class SettingsScreen(ImprovedScreen): | ||
|
||
def __init__(self, **kwargs) -> None: | ||
current_background_theme = USER_DATA.settings["current_background_theme"] | ||
super().__init__( | ||
back_image_path=PATH_BACKGROUNDS + | ||
THEMES_DICT[current_background_theme]["image"], | ||
**kwargs) |