Skip to content

Commit

Permalink
increase back arrow size
Browse files Browse the repository at this point in the history
  • Loading branch information
LupaDevStudio committed Dec 6, 2023
1 parent a69b3d3 commit 8bbe51f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
7 changes: 4 additions & 3 deletions screens/achievements.kv
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
#:kivy 2.1.0
#:import PATH_IMAGES tools.path.PATH_IMAGES
#:import TEXT_FONT_COLOR tools.constants.TEXT_FONT_COLOR
#:import BACK_ARROW_SIZE tools.constants.BACK_ARROW_SIZE

<AchievementsScreen>:
ImageWithTextButton:
source: PATH_IMAGES + "back_arrow.png"
size_hint: None, 0.15
pos_hint: {"x":0.025, "top": 1}
size_hint: BACK_ARROW_SIZE, BACK_ARROW_SIZE*0.6
pos_hint: {"x":0.025, "top": 0.975}
allow_stretch: True
width: self.height
keep_ratio: False
release_function: root.go_to_menu

Label:
Expand Down
8 changes: 4 additions & 4 deletions screens/game_over.kv
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#:kivy 2.1.0
#:import TITLE_FONT_COLOR tools.constants.TITLE_FONT_COLOR
#:import TEXT_FONT_COLOR tools.constants.TEXT_FONT_COLOR
#:import BACK_ARROW_SIZE tools.constants.BACK_ARROW_SIZE

<GameOverScreen>:

Expand All @@ -18,12 +19,11 @@

# Back button
ImageWithTextButton:
id: back_button
source: PATH_IMAGES + "back_arrow.png"
size_hint: None, 0.15
pos_hint: {"x":0.025, "top": 1}
size_hint: BACK_ARROW_SIZE, BACK_ARROW_SIZE*0.6
pos_hint: {"x":0.025, "top": 0.975}
allow_stretch: True
width: self.height
keep_ratio: False
release_function: root.back_to_menu

# Score
Expand Down
8 changes: 5 additions & 3 deletions screens/settings.kv
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,18 @@
#:import TEXT tools.constants.TEXT
#:import LANGUAGES_LIST tools.constants.LANGUAGES_LIST
#: import USER_DATA tools.constants.USER_DATA
#:import BACK_ARROW_SIZE tools.constants.BACK_ARROW_SIZE


<SettingsScreen>:

# Back arrow
ImageWithTextButton:
source: PATH_IMAGES + "back_arrow.png"
size_hint: None, 0.15
pos_hint: {"x":0.025, "top": 1}
size_hint: BACK_ARROW_SIZE, BACK_ARROW_SIZE*0.6
pos_hint: {"x":0.025, "top": 0.975}
allow_stretch: True
width: self.height
keep_ratio: False
release_function: root.go_to_menu

Slider:
Expand Down
1 change: 1 addition & 0 deletions tools/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
DEBUG_MODE = False
FPS = 30
MSAA_LEVEL = 2
BACK_ARROW_SIZE = 0.2

### Data loading ###

Expand Down

0 comments on commit 8bbe51f

Please sign in to comment.