Skip to content
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.

Update start page design #288

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
161 changes: 82 additions & 79 deletions designer/designer.kv
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#:set designer_padding '4sp'
#:set designer_text_input_height '30sp'
#:set designer_action_width 200
#:set designer_action_button_width 440
<DesignerButton@Button,DesignerLabel@Label>:
size_hint_y: None
height: designer_height
Expand Down Expand Up @@ -421,7 +422,7 @@
info: info
background_normal: 'atlas://data/images/defaulttheme/action_bar'
size_hint_x: None
width: designer_action_width
width: designer_action_button_width
canvas.before:
Color:
rgba: [1, 1, 1, .5] if self.disabled else [1, 1, 1, 1]
Expand Down Expand Up @@ -518,14 +519,20 @@
<RecentItem>:
orientation: 'vertical'
size_hint: 1, None
height: 40
height: 130
on_touch_down: if self.collide_point(*args[1].pos): root.dispatch('on_press')
canvas.after:
Color:
rgb: .2, .2, .2
Rectangle:
pos: self.x + 25, self.y
size: self.width - 50, 1
Label:
text: 'Project Name'
text_size: self.size
valign: 'middle'
shorten: True
padding_x: 20
Label:
text: root.path
text_size: self.size
Expand All @@ -547,101 +554,97 @@
height: 1

<DesignerLinkLabel>:
color: 0, 0, 1, 1
color: 0.5, 0.5, 0, 1
background_normal: 'atlas://data/images/defaulttheme/action_item'
background_disabled_normal: 'atlas://data/images/defaulttheme/action_item_disabled'
text_size: self.width, None
halign: 'center'

<DesignerStartPage>:
btn_open: btn_open
btn_new: btn_new
recent_files_box: recent_files_box
orientation: 'vertical'
padding: 0, 0, 0, 20
Label:
text: 'Kivy Designer'
font_size: '26pt'
size_hint_y: None
height: '40pt'
Label:
markup: True
text: '[i]Innovative User Interfaces, Desktop, and Mobile Development Made Easy.[/i]'
font_size: '12pt'
halign: 'center'
size_hint_y: None
height: '15pt'
GridLayout:
cols: 2
size_hint: None, None
height: self.minimum_height
width: self.minimum_width
pos_hint: {'center_x': 0.5}
padding: 0, '15pt', 0, 0
spacing: '4sp'
DesignerButtonFit:
id: btn_open
text: 'Open Project'
on_release: root.dispatch('on_open_down')
DesignerButtonFit:
id: btn_new
text: 'New Project'
on_release: root.dispatch('on_new_down')

Label:
text: 'Getting Started'
font_size: '16pt'
bold: True
size_hint_y: None
height: '30pt'

GridLayout:
kivy_label: kivy_label
cols: 2
size_hint: None, None
height: self.minimum_height
width: 450
pos_hint: {'center_x': 0.5}
row_force_default: True
row_default_height: '40sp'
spacing: '4sp'
padding: '16sp', '0sp'

DesignerLinkLabel:
id: kivy_label
text: ' Kivy'
link: 'http://kivy.org'

DesignerLinkLabel:
text: ' Kivy Designer Help'
on_release: root.dispatch('on_help')

DesignerLinkLabel:
id: kivy_label
text: ' Kivy Documentation'
link: 'http://kivy.org/docs'

DesignerLinkLabel:
text: ' Kivy Designer Documentation'
link: 'http://kivy-designer.readthedocs.org/'

Label:
text: 'Recent Projects'
font_size: '16pt'
bold: True
size_hint_y: None
height: '30pt'
orientation: 'horizontal'

RecentFilesBox:
id: recent_files_box
pos_hint: {'center_x': 0.5}
size_hint_x: None
width: 600
size_hint_x: 0.4
canvas.before:
Color:
rgba: 1, 1, 1, 0.05
Rectangle:
pos: self.pos
size: self.size
BoxLayout:
orientation: 'vertical'
size_hint_x: 0.8
padding: 0, 100, 0, 100
Image:
source: 'data/logo/kivy-icon-512.png'
size_hint_y: 0.2
Label:
text: 'Kivy Designer'
font_size: '26pt'
size_hint_y: 0.1
Label:
markup: True
text: '[i]Innovative User Interfaces, Desktop, and Mobile Development Made Easy.[/i]'
font_size: '12pt'
halign: 'center'
size_hint_y: 0.1
GridLayout:
cols: 2
size_hint: None, 0.2
height: self.minimum_height
width: self.minimum_width
pos_hint: {'center_x': 0.5}
padding: 0, '15pt', 0, 0
spacing: '4sp'
DesignerButtonFit:
id: btn_open
text: 'Open Project'
on_release: root.dispatch('on_open_down')
DesignerButtonFit:
id: btn_new
text: 'New Project'
on_release: root.dispatch('on_new_down')

Label:
text: 'Getting Started'
font_size: '16pt'
bold: True
height: '30pt'
size_hint_y: 0.1
GridLayout:
kivy_label: kivy_label
cols: 2
size_hint: None, 0.2
height: self.minimum_height
width: 900
pos_hint: {'center_x': 0.5}
row_force_default: True
row_default_height: '30sp'
spacing: '4sp'
padding: '16sp', '0sp'

DesignerLinkLabel:
id: kivy_label
text: ' Kivy'
link: 'http://kivy.org'

DesignerLinkLabel:
text: ' Kivy Designer Help'
on_release: root.dispatch('on_help')

DesignerLinkLabel:
id: kivy_label
text: ' Kivy Documentation'
link: 'http://kivy.org/docs'

DesignerLinkLabel:
text: ' Kivy Designer Documentation'
link: 'http://kivy-designer.readthedocs.org/'

<InfoBubble>:
size_hint: None, None
Expand Down