You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Comrad/client/backup/main1.kv

103 lines
3.8 KiB
Plaintext

#:import get_color_from_hex kivy.utils.get_color_from_hex
#:import images_path kivymd.images_path
#:import colors kivymd.color_definitions.colors
#:import partial functools.partial
#:import NoTransition kivy.uix.screenmanager.NoTransition
MyLayout:
scr_mngr: scr_mngr
orientation: 'vertical'
height: self.minimum_height
canvas:
Color:
rgba: 0,0,0,1 #get_color_from_hex(colors['Gray']['900'])
Rectangle:
pos: self.pos
size: self.size
MyToolbar:
id: toolbar
title: app.title
pos_hint: {'center_x': .5, 'center_y': 1}
md_bg_color: 0,0,0,1
background_palette: 'Red'
background_hue: '500'
specific_text_color: 1,0,0,1
right_action_items: [['radio-tower', partial(root.change_screen, 'feed')], ['account-group', partial(root.change_screen, 'people')], ['calendar', partial(root.change_screen, 'events')], ['message-processing-outline', partial(root.change_screen, 'messages')], ['bell-outline', partial(root.change_screen, 'notifications')]]
left_action_items: [[f"spiral3.png", partial(root.change_screen, 'welcome')]]
ScreenManager:
id: scr_mngr
transition: NoTransition()
WelcomeScreen:
name: 'welcome'
MDLabel:
text: "Turning and turning in the widening gyre \nThe falcon cannot hear the falconer;\nThings fall apart; the centre cannot hold;\nMere anarchy is loosed upon the world,\nThe blood-dimmed tide is loosed, and everywhere \nThe ceremony of innocence is drowned;\nThe best lack all conviction, while the worst \nAre full of passionate intensity.\n\nSurely some revelation is at hand;\nSurely the Second Coming is at hand. \nThe Second Coming! Hardly are those words out \nWhen a vast image out of Spiritus Mundi\nTroubles my sight: somewhere in sands of the desert \nA shape with lion body and the head of a man, \nA gaze blank and pitiless as the sun, \nIs moving its slow thighs, while all about it \nReel shadows of the indignant desert birds. \nThe darkness drops again; but now I know \nThat twenty centuries of stony sleep\nWere vexed to nightmare by a rocking cradle, \nAnd what rough beast, its hour come round at last, \nSlouches towards Bethlehem to be born?"
pos_hint: {"center_x": 0.5, "center_y": 0.5}
halign:"center"
theme_text_color: "Custom"
text_color: 1, 0, 0, 1
FeedScreen:
name: 'feed'
MDLabel:
text: "FEED Turning and turning in the widening gyre..."
pos_hint: {"center_x": 0.5, "center_y": 0.95}
halign:"center"
theme_text_color: "Custom"
text_color: 1, 0, 0, 1
PeopleScreen:
name: 'people'
MDLabel:
text: "The falcon cannot hear the falconer..."
pos_hint: {"center_x": 0.5, "center_y": 0.95}
halign:"center"
EventsScreen:
name: 'events'
MessagesScreen:
name: 'messages'
NotificationsScreen:
name: 'notifications'
# ScreenManager:
# BaseScreen:
# FeedScreen:
# <BaseScreen>:
# name: 'base'
# MDFillRoundFlatButton:
# text: "Gyre"
# halign: "center"
# pos_hint: {"center_x": 0.5, "center_y": 0.5}
# md_bg_color: get_color_from_hex(colors['Red']['500'])
# MDLabel:
# text: "Turning and turning in the widening gyre..."
# pos_hint: {"center_x": 0.5, "center_y": 0.435}
# halign:"center"
# <FeedScreen>
# name: 'feed'
# MDLabel:
# text: "The falcon cannot hear the falconer..."
# pos_hint: {"center_x": 0.5, "center_y": 0.3}
# halign:"center"