no dp sizing

This commit is contained in:
Sander Land committed 2020-06-03 19:02:53 +02:00
1 parent 118eb8b387
commit c40dc4edf6
7 files changed
+16 -18

No files matched your search

+2 -2
View File
@@ -45,9 +45,9 @@ Older linux machines may have trouble installing, you can try to manually instal
The following packages may help resolve missing OS packages for Kivy or KataGo. The following packages may help resolve missing OS packages for Kivy or KataGo.
``` ```
sudo apt-get install python3-pip build-essential git python3 python3-dev ffmpeg libsdl2-dev libsdl2-image-dev\ sudo apt-get install python3-pip build-essential git python3 python3-dev ffmpeg libsdl2-dev libsdl2-image-dev\
libsdl2-mixer-dev libsdl2-ttf-dev libportmidi-dev libswscale-dev libavformat-dev libavcodec-dev zlib1g-dev \ libsdl2-mixer-dev libsdl2-ttf-dev libportmidi-dev libswscale-dev libavformat-dev libavcodec-dev zlib1g-dev\
libgstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good\ libgstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good\
pkg-config libgl-dev opencl-headers ocl-icd-opencl-dev pkg-config libgl-dev opencl-headers ocl-icd-opencl-dev python3-pygame
``` ```
Then, try installing python package dependencies using: Then, try installing python package dependencies using:
``` ```
+2 -2
View File
@@ -103,7 +103,7 @@ In addition to shortcuts mentioned above and those shown in the main menu:
* **[Shift]**: Open the main menu. * **[Shift]**: Open the main menu.
* **[Tab]**: Switch between analysis and play modes. * **[Tab]**: Switch between analysis and play modes.
* **[~]** or **[`]** or **[m]**: Toggles only showing the board. * **[~]** or **[ ` ]** or **[m]**: Toggles only showing the board.
* **[p]**: Pass * **[p]**: Pass
* **[spacebar]**: Pause/Resume timer * **[spacebar]**: Pause/Resume timer
* **[arrow up]** or **[z]**: Undo move. Hold shift for 10 moves at a time, or ctrl to skip to the start. * **[arrow up]** or **[z]**: Undo move. Hold shift for 10 moves at a time, or ctrl to skip to the start.
@@ -131,7 +131,7 @@ In addition to shortcuts mentioned above and those shown in the main menu:
[![GitHub issues](https://img.shields.io/github/issues/sanderland/katrain)](https://github.com/sanderland/katrain/issues) [![GitHub issues](https://img.shields.io/github/issues/sanderland/katrain)](https://github.com/sanderland/katrain/issues)
[![GitHub contributors](https://img.shields.io/github/contributors/sanderland/katrain?label=github%20contributors)](https://github.com/sanderland/katrain/graphs/contributors) [![GitHub contributors](https://img.shields.io/github/contributors/sanderland/katrain?label=github%20contributors)](https://github.com/sanderland/katrain/graphs/contributors)
[![Liberapay Patrons](https://img.shields.io/liberapay/patrons/KaTrain)](https://liberapay.com/sanderbaduk/) [![Liberapay Patrons](https://img.shields.io/liberapay/patrons/KaTrain)](https://liberapay.com/sanderbaduk/)
![Github sponsors](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=dcb424&link=https://github.com/sponsors/sanderland/) [![Github sponsors](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=dcb424&link=https://github.com/sponsors/sanderland/)](https://github.com/sponsors/sanderland)
* Donations for improving and promoting KaTrain are taken supported through [Liberapay](https://liberapay.com/KaTrain/). * Donations for improving and promoting KaTrain are taken supported through [Liberapay](https://liberapay.com/KaTrain/).
* You also can contact me on [discord](https://discord.gg/AjTPFpN) (Sander#3278), [KakaoTalk](https://open.kakao.com/o/gTsMJCac) * You also can contact me on [discord](https://discord.gg/AjTPFpN) (Sander#3278), [KakaoTalk](https://open.kakao.com/o/gTsMJCac)
-2
View File
@@ -66,8 +66,6 @@ from katrain.gui.badukpan import AnalysisControls, BadukPanControls, BadukPanWid
from katrain.gui.controlspanel import ControlsPanel from katrain.gui.controlspanel import ControlsPanel
class KaTrainGui(Screen, KaTrainBase): class KaTrainGui(Screen, KaTrainBase):
"""Top level class responsible for tying everything together""" """Top level class responsible for tying everything together"""
+1 -1
View File
@@ -1,4 +1,4 @@
VERSION = "1.1.0" VERSION = "1.1.1"
HOMEPAGE = "https://github.com/sanderland/katrain" HOMEPAGE = "https://github.com/sanderland/katrain"
PLAYER_HUMAN, PLAYER_AI = "player:human", "player:ai" PLAYER_HUMAN, PLAYER_AI = "player:human", "player:ai"
+2 -2
View File
@@ -34,7 +34,7 @@
#:set GRAPH_DOT_COLOR [0.85, 0.3, 0.3,1] #:set GRAPH_DOT_COLOR [0.85, 0.3, 0.3,1]
#:set BUTTON_INACTIVE_COLOR LIGHTGREY #:set BUTTON_INACTIVE_COLOR LIGHTGREY
#:set NOTES_FONT_SIZE dp(18) #:set NOTES_FONT_SIZE 18
# for sizing help # for sizing help
@@ -713,7 +713,7 @@
width: 0 width: 0
Label: Label:
id: label id: label
size: dp(30) size: 30
font_size: root.font_size font_size: root.font_size
text: root.text text: root.text
color: LIGHTGREY color: LIGHTGREY
+6 -6
View File
@@ -128,7 +128,7 @@ Builder.load_string(
is_selected: self.path in ctx.controller().selection is_selected: self.path in ctx.controller().selection
orientation: 'horizontal' orientation: 'horizontal'
size_hint_y: None size_hint_y: None
height: '24dp' height: 24
# Don't allow expansion of the ../ node # Don't allow expansion of the ../ node
is_leaf: not ctx.isdir or ctx.name.endswith('..' + ctx.sep) or self.locked is_leaf: not ctx.isdir or ctx.name.endswith('..' + ctx.sep) or self.locked
on_touch_down: self.collide_point(*args[1].pos) and ctx.controller().entry_touched(self, args[1]) on_touch_down: self.collide_point(*args[1].pos) and ctx.controller().entry_touched(self, args[1])
@@ -136,7 +136,7 @@ Builder.load_string(
BoxLayout: BoxLayout:
pos: root.pos pos: root.pos
size_hint_x: None size_hint_x: None
width: root.width - dp(10) width: root.width - 10
Label: Label:
id: filename id: filename
text_size: self.width, None text_size: self.width, None
@@ -202,9 +202,9 @@ Builder.load_string(
orientation: 'vertical' orientation: 'vertical'
Label: Label:
size_hint_y: None size_hint_y: None
height: '22dp' height: 22
text_size: self.size text_size: self.size
padding_x: '10dp' padding_x: 10
text: abspath(root.path) text: abspath(root.path)
track_lang: i18n._('') track_lang: i18n._('')
valign: 'middle' valign: 'middle'
@@ -231,11 +231,11 @@ Builder.load_string(
text: (root.selection and (root._shorten_filenames(root.selection) if root.multiselect else root.selection[0])) or '' text: (root.selection and (root._shorten_filenames(root.selection) if root.multiselect else root.selection[0])) or ''
hint_text: i18n._('Filename') hint_text: i18n._('Filename')
multiline: False multiline: False
height: '40dp' height: 40
AutoSizedRoundedRectangleButton: AutoSizedRoundedRectangleButton:
id: select_button id: select_button
padding_x: 15 padding_x: 15
height: '40dp' height: 40
size_hint_x: None size_hint_x: None
text: root.select_string text: root.select_string
on_release: root.dispatch('on_success') on_release: root.dispatch('on_success')
+3 -3
View File
@@ -8,8 +8,8 @@
#:set CP_SMALL_SPACING 3 #:set CP_SMALL_SPACING 3
#:set CP_PADDING 6 #:set CP_PADDING 6
#:set INPUT_FONT_SIZE dp(25) #:set INPUT_FONT_SIZE 25
#:set DESC_FONT_SIZE dp(20) #:set DESC_FONT_SIZE 20
#:import BACKGROUND_COLOR katrain.gui.style.BACKGROUND_COLOR #:import BACKGROUND_COLOR katrain.gui.style.BACKGROUND_COLOR
#:import BOX_BACKGROUND_COLOR katrain.gui.style.BOX_BACKGROUND_COLOR #:import BOX_BACKGROUND_COLOR katrain.gui.style.BOX_BACKGROUND_COLOR
@@ -29,7 +29,7 @@
helper_text: "" helper_text: ""
<LabelledPathInput>: <LabelledPathInput>:
font_size: dp(16) font_size: 16
multiline: True # just for wrapping multiline: True # just for wrapping
helper_text_mode: "on_error" helper_text_mode: "on_error"
helper_text: i18n._("file not found") helper_text: i18n._("file not found")