Skip to content

Commit

Permalink
changes in side tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
wishrohitv committed May 11, 2024
1 parent 062c757 commit 80c7c0e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 4 additions & 4 deletions components/sidemenu/side_menu.kv
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@
group: "side_tabs"
size_hint: 1, None
height: "50dp"
source: "assets/navigations/document-files-white.jpg" if self.state == "normal" else "assets/navigations/document-files-pink.jpg"
background_normal: "assets/navigations/document-files-white.jpg" if self.state == "normal" else "assets/navigations/document-files-pink.jpg"
on_press:
root.left_tab_state(self)
app.on_left_tab_state(self)

LeftTabs:
id: search
name: "search"
source: "assets/navigations/magnifying-glass-white.jpg" if self.state == "normal" else "assets/navigations/magnifying-glass-pink.jpg"
background_normal: "assets/navigations/magnifying-glass-white.jpg" if self.state == "normal" else "assets/navigations/magnifying-glass-pink.jpg"
group: "side_tabs"
size_hint: 1, None
height: "50dp"
Expand All @@ -55,13 +55,13 @@
height: f"{Window.height-260}dp" if Window.height - 260 > 8 else 0
LeftTabs:
state: "down"
source: "assets/navigations/terminal-white.jpg" if self.state == "normal" else "assets/navigations/terminal-pink.jpg"
background_normal: "assets/navigations/terminal-white.jpg" if self.state == "normal" else "assets/navigations/terminal-pink.jpg"
size_hint: 1, None
height: "50dp"
text: "terminal"
on_press: app.open_console_and_close(self)
LeftTabs:
source: "assets/navigations/info-white.jpg" if self.state == "normal" else "assets/navigations/info-pink.jpg"
background_normal: "assets/navigations/info-white.jpg" if self.state == "normal" else "assets/navigations/info-pink.jpg"
size_hint: 1, None
height: "50dp"
text: "about"
Expand Down
6 changes: 4 additions & 2 deletions components/sidemenu/side_menu.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.togglebutton import ToggleButtonBehavior
from kivy.uix.togglebutton import ToggleButton, ToggleButtonBehavior
from kivy.properties import StringProperty, ColorProperty
from kivy.uix.image import Image
from kivy.lang import Builder
Expand Down Expand Up @@ -29,7 +29,9 @@ def app_info_open(self):
Factory.AboutModal().open()


class LeftTabs(ToggleButtonBehavior, Image):
# class LeftTabs(ToggleButtonBehavior, Image):
# pass
class LeftTabs(ToggleButton):
pass


Expand Down

0 comments on commit 80c7c0e

Please sign in to comment.