Skip to content

Commit

Permalink
solving bugs of ./components
Browse files Browse the repository at this point in the history
  • Loading branch information
Heitor-Tasso committed Mar 1, 2022
1 parent d6c39a0 commit bf63e82
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion designer/components/dialogs/about.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
text_size: self.size
padding: 30, 20
text:" Kivy Designer is Kivy\'s tool for designing Graphical User Interfaces (GUIs) from Kivy Widgets. \\nYou can compose and customize widgets, and test them. It is completely written in Python using Kivy. \\nKivy Designer is integrated with Buildozer and Hanga, so you can easily develop and publish your applications to Desktop and Mobile devices.'"
font_size: '12pt'
font_size: pt(12)
valign: 'top'
DesignerButton:
text: 'Close'
Expand Down
2 changes: 1 addition & 1 deletion designer/components/playground.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
do_rotation: False
size_hint: None, None
size: '550dp', '350dp'
pos: '300dp', '230dp'
pos: dp(300), dp(230)
auto_bring_to_front: False
canvas:
Color:
Expand Down
2 changes: 1 addition & 1 deletion designer/components/playground_size_selector.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def sort_sizes(item):
values = sorted(values, key=sort_sizes, reverse=True)
for name, size in values:
btn = ToggleButton(text='', markup=True)
btntext = f'{name}\n[color=777777][size={btn.font_size*0.8}]{size[0]}x{size[1]}[/size][/color]'
btntext = f"{name}\n[color=777777][size={int(btn.font_size*0.8)}]{size[0]}x{size[1]}[/size][/color]"
btn.text = btntext

btn.bind(on_press=partial(self.set_size, size))
Expand Down
6 changes: 3 additions & 3 deletions designer/components/start_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
Label:
markup: True
text: '[i]Innovative User Interfaces, Desktop, and Mobile Development Made Easy.[/i]'
font_size: '12pt'
font_size: pt(12)
halign: 'center'
size_hint_y: None
height: '15pt'
Expand Down Expand Up @@ -139,8 +139,8 @@
Color:
rgb: (0.2, 0.2, 0.2)
Rectangle:
pos: (self.x+dp(25)), self.y)
size: (self.width-dp(50)), dp(1))
pos: ((self.x+dp(25)), self.y)
size: ((self.width-dp(50)), dp(1))
Label:
text: root.path
text_size: self.size
Expand Down
2 changes: 1 addition & 1 deletion designer/components/statusbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
<StatusNavBarSeparator>:
text: '>'
font_size: '10pt'
width: (self.texture_size[0+dp(20))
width: (self.texture_size[0]+dp(20))
size_hint_x: None
""")
Expand Down
2 changes: 1 addition & 1 deletion designer/uix/contextual.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<MenuHeader>
color: (1, 1, 1, 1) if self.state == 'normal' else (0, 0, 0, 1)
font_size: '12dp'
font_size: dp(12)
shorten: True
text_size: self.size
padding: '2dp', '2dp'
Expand Down

0 comments on commit bf63e82

Please sign in to comment.