rr
This commit is contained in:
1 parent
2c0c86a7d8
commit
b062d78dba
2 files changed
+6
-4
No files matched your search
+4
-1
@@ -51,15 +51,17 @@
|
||||
rgba: root.outline_color
|
||||
Line:
|
||||
rectangle: (*self.pos,*self.size)
|
||||
rounded_rectangle: (*self.pos,*self.size,root.background_radius,root.background_radius,root.background_radius,root.background_radius,self.height)
|
||||
width: root.outline_width
|
||||
|
||||
<BackgroundColor>:
|
||||
canvas.before:
|
||||
Color:
|
||||
rgba: root.background_color
|
||||
Rectangle:
|
||||
RoundedRectangle:
|
||||
size: self.size
|
||||
pos: self.pos
|
||||
radius: [root.background_radius, ]
|
||||
|
||||
|
||||
<ToolTipLabel>: # TODO
|
||||
@@ -276,6 +278,7 @@
|
||||
AutoSizedMDRectangleButton:
|
||||
id: pass_btn
|
||||
text: i18n._('pass-button-text')
|
||||
background_radius: 10
|
||||
size_hint: None, 0.5
|
||||
pos_hint: {'center_x': 0.15,'center_y':0.5}
|
||||
on_left_release: root.katrain("play",None)
|
||||
|
||||
@@ -21,8 +21,6 @@ from kivymd.app import MDApp
|
||||
from kivymd.uix.behaviors import RectangularRippleBehavior, CircularRippleBehavior
|
||||
from kivymd.uix.boxlayout import MDBoxLayout
|
||||
from kivymd.uix.button import BasePressedButton, BaseFlatButton
|
||||
from kivymd.uix.floatlayout import MDFloatLayout
|
||||
from kivymd.uix.menu import MDDropdownMenu
|
||||
from kivymd.uix.navigationdrawer import MDNavigationDrawer
|
||||
from kivy.core.text import Label as CoreLabel
|
||||
from katrain.core.utils import i18n, I18NTextInput, I18NLabel
|
||||
@@ -35,11 +33,12 @@ from katrain.gui.style import WHITE
|
||||
|
||||
class BackgroundColor(Widget):
|
||||
background_color = ListProperty([1, 1, 1, 0])
|
||||
|
||||
background_radius = NumericProperty(0)
|
||||
|
||||
class OutlineColor(Widget):
|
||||
outline_color = ListProperty([1, 1, 1, 0])
|
||||
outline_width = NumericProperty(1)
|
||||
background_radius = NumericProperty(0)
|
||||
|
||||
|
||||
class LeftButtonBehavior(ButtonBehavior): # stops buttons etc activating on right click
|
||||
|
||||
Reference in new issue
Block a user