12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- # Goblinoid: Experience all of MediaGoblin on an Android Device
- # Copyright (C) 2015 Dylan Jeffers
- #
- # This program is free software: you can redistribute it and/or modify
- # it under the terms of the GNU General Public License as published by
- # the Free Software Foundation, either version 3 of the License, or
- # (at your option) any later version.
- #
- # This program is distributed in the hope that it will be useful,
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- # GNU General Public License for more details.
- #
- # You should have received a copy of the GNU General Public License
- # along with this program. If not, see <http://www.gnu.org/licenses/>.
- #:import utils kivy.utils
- <UploadView>
- BoxLayout:
- orientation: 'vertical'
- padding_y: sp(40)
- BoxLayout:
- size_hint_y: None
- height: sp(40)
- AsyncImage:
- id: img
- source: root.upload_image
- allow_stretch: True
- BoxLayout:
- size_hint_y: None
- height: sp(30)
- BoxLayout:
- size_hint_y: None
- padding: sp(20),0,sp(20),0
- TextInput:
- id: title
- background_color: [1,1,1,0.15]
- foreground_color: [1,1,1,1]
- hint_text_color: [1,1,1,1]
- font_size: sp(25)
- hint_text: 'Title...'
- size_hint_y: None
- padding_y: sp(10)
- padding_x: sp(15)
- height: self.minimum_height
- Button:
- background_normal: ''
- background_down: 'atlas://data/images/defaulttheme/button'
- background_color: utils.get_color_from_hex("#86D4B1")
- size_hint: None, None
- height: title.height
- width: sp(60)
- on_release: root.upload_media()
- Image:
- source: 'images/send_icon.png'
- size_hint_y: None
- height: self.parent.height / 2
- x: self.parent.x + (self.parent.width / 2 - self.width / 2)
- y: self.parent.y + (self.parent.height / 2 - self.height / 2)
- BoxLayout:
- padding: sp(20),0,sp(20),0
- size_hint_y: None
- height: desc.height
- TextInput:
- id: desc
- background_color: [1,1,1,0.15]
- foreground_color: [1,1,1,1]
- hint_text_color: [1,1,1,1]
- font_size: sp(20)
- hint_text: 'Description...'
- size_hint_y: None
- height: self.minimum_height * 1.55 if self.minimum_height < sp(50) else self.minimum_height
- padding_x: sp(15)
- padding_y: sp(10)
- BoxLayout:
- size_hint_y: None
- height: sp(40)
|