App icon
I have designed a sample code in which I am using my app icon but it looks very tiny. Right now my icon size is 100 x 36. When I run the program, icon looks really very tiny. I am trying to increase the size of it so it should be visible to us.
Border Box around the Text
And also I need to border the text only with box but the border is created to whole label area.
Problems
- Is it possible to increase the size of icon?
- I need only to box the label text.
My sample code:
from kivy.uix.floatlayout import FloatLayout
from kivy.app import App
from kivy.lang import Builder
Builder.load_string('''
<MainScreen>:
GridLayout:
orientation: 'vertical'
cols: 1
canvas.before:
Color:
rgba: 1, 1, 1, 1
Rectangle:
pos: self.pos
size: self.size
GridLayout:
padding: [10, 10, 10, 10]
spacing: [10,10]
orientation: 'vertical'
cols: 1
size_hint: 1, .1
canvas:
Color:
rgba: .1, .1, 1, .9
Line:
width: 1.
rectangle: (self.x, self.y, self.width, self.height)
Label:
text: 'INPUTS'
color: 0,0,0,1
GridLayout:
padding: [10, 10, 10, 10]
spacing: [10,10]
orientation: 'vertical'
cols: 1
size_hint: 1, .1
canvas:
Color:
rgba: .1, .1, 1, .9
Line:
width: 1.
rectangle: (self.x, self.y, self.width, self.height)
Label:
text: 'OUTPUTS'
color: 0,0,0,1
''')
class MainScreen(FloatLayout):
def __init__(self, **kwargs):
super(MainScreen, self).__init__(**kwargs)
class TestApp(App):
def build(self):
self.icon = 'fif.png'
self.title = 'sample_v_1.1'
return MainScreen()
if __name__ == "__main__":
TestApp().run()