Compare commits

...

4 Commits

4 changed files with 57 additions and 8 deletions

56
.idea/workspace.xml generated
View File

@@ -4,8 +4,10 @@
<option name="autoReloadType" value="SELECTIVE" /> <option name="autoReloadType" value="SELECTIVE" />
</component> </component>
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="3745efb7-4727-49d7-a776-8798725fc688" name="Changes" comment="Now with image!"> <list default="true" id="3745efb7-4727-49d7-a776-8798725fc688" name="Changes" comment="scales down image">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/rankiv.kv" beforeDir="false" afterPath="$PROJECT_DIR$/rankiv.kv" afterDir="false" />
<change beforePath="$PROJECT_DIR$/zufall.png" beforeDir="false" afterPath="$PROJECT_DIR$/zufall.png" afterDir="false" />
</list> </list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -15,6 +17,9 @@
<component name="Git.Settings"> <component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" /> <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
</component> </component>
<component name="MarkdownSettingsMigration">
<option name="stateVersion" value="1" />
</component>
<component name="ProblemsViewState"> <component name="ProblemsViewState">
<option name="selectedTabId" value="CurrentFile" /> <option name="selectedTabId" value="CurrentFile" />
</component> </component>
@@ -100,13 +105,58 @@
<option name="project" value="LOCAL" /> <option name="project" value="LOCAL" />
<updated>1714488962508</updated> <updated>1714488962508</updated>
</task> </task>
<option name="localTasksCounter" value="4" /> <task id="LOCAL-00004" summary="Adds Readme">
<option name="closed" value="true" />
<created>1714509795544</created>
<option name="number" value="00004" />
<option name="presentableId" value="LOCAL-00004" />
<option name="project" value="LOCAL" />
<updated>1714509795544</updated>
</task>
<task id="LOCAL-00005" summary="Adds icon">
<option name="closed" value="true" />
<created>1714510610620</created>
<option name="number" value="00005" />
<option name="presentableId" value="LOCAL-00005" />
<option name="project" value="LOCAL" />
<updated>1714510610620</updated>
</task>
<task id="LOCAL-00006" summary="as font seems to be too small on device, I try out sp(24 instead of app.font_size)">
<option name="closed" value="true" />
<created>1714514888103</created>
<option name="number" value="00006" />
<option name="presentableId" value="LOCAL-00006" />
<option name="project" value="LOCAL" />
<updated>1714514888103</updated>
</task>
<task id="LOCAL-00007" summary="Merge remote-tracking branch 'origin/master'">
<option name="closed" value="true" />
<created>1714514925569</created>
<option name="number" value="00007" />
<option name="presentableId" value="LOCAL-00007" />
<option name="project" value="LOCAL" />
<updated>1714514925569</updated>
</task>
<task id="LOCAL-00008" summary="scales down image">
<option name="closed" value="true" />
<created>1714515934415</created>
<option name="number" value="00008" />
<option name="presentableId" value="LOCAL-00008" />
<option name="project" value="LOCAL" />
<updated>1714515934416</updated>
</task>
<option name="localTasksCounter" value="9" />
<servers /> <servers />
</component> </component>
<component name="VcsManagerConfiguration"> <component name="VcsManagerConfiguration">
<MESSAGE value="Its running! Yeah!" /> <MESSAGE value="Its running! Yeah!" />
<MESSAGE value="Still running… in multiple files, with global font_size…" /> <MESSAGE value="Still running… in multiple files, with global font_size…" />
<MESSAGE value="Now with image!" /> <MESSAGE value="Now with image!" />
<option name="LAST_COMMIT_MESSAGE" value="Now with image!" /> <MESSAGE value="Adds Readme" />
<MESSAGE value="Adds icon" />
<MESSAGE value="as font seems to be too small on device, I try out sp(24 instead of app.font_size)" />
<MESSAGE value="Merge remote-tracking branch 'origin/master'" />
<MESSAGE value="scales down image" />
<option name="LAST_COMMIT_MESSAGE" value="scales down image" />
</component> </component>
</project> </project>

View File

@@ -4,7 +4,6 @@ from rannum import RanNum
class RanKivApp(App): class RanKivApp(App):
font_size = NumericProperty(24)
def build(self): def build(self):
self.ran_num = RanNum() self.ran_num = RanNum()

View File

@@ -7,9 +7,9 @@
id: upper_boundary_input id: upper_boundary_input
multiline: False multiline: False
halign: 'center' halign: 'center'
font_size: app.font_size font_size: sp(24)
size_hint: .8, None size_hint: .8, None
height: 42 height: sp(42)
hint_text: 'Gib eine Zahl ein!' hint_text: 'Gib eine Zahl ein!'
input_filter: 'int' input_filter: 'int'
pos_hint: {'x': .1} pos_hint: {'x': .1}
@@ -17,7 +17,7 @@
size_hint: None, .2 size_hint: None, .2
Button: Button:
text: 'Generate!' text: 'Generate!'
font_size: app.font_size font_size: sp(24)
size_hint: .5, None size_hint: .5, None
pos_hint: {'x': .25} pos_hint: {'x': .25}
on_release: app.ran_num.generate_random_number() on_release: app.ran_num.generate_random_number()
@@ -25,4 +25,4 @@
id: output id: output
text: 'Meine Zufallszahl' text: 'Meine Zufallszahl'
halign: 'center' halign: 'center'
font_size: app.font_size font_size: sp(24)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 304 KiB

After

Width:  |  Height:  |  Size: 68 KiB