pixel fiddling

This commit is contained in:
Sander Land committed 2020-06-28 23:31:18 +02:00
1 parent 1fabb6fc96
commit 48e216fc16
4 files changed
+16 -7

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@
# first, logging level lower
import os
os.environ["KCFG_KIVY_LOG_LEVEL"] = os.environ.get("KCFG_KIVY_LOG_LEVEL", "warning")
os.environ["KCFG_KIVY_LOG_LEVEL"] = os.environ.get("KCFG_KIVY_LOG_LEVEL", "trace")
if "KIVY_AUDIO" not in os.environ:
os.environ["KIVY_AUDIO"] = "sdl2" # seems to be most stable / some players hard crash
+12 -5
View File
@@ -53,7 +53,7 @@
Color:
rgba: root.outline_color
Line:
rounded_rectangle: (*self.pos,self.width,self.height,root.background_radius,root.background_radius,root.background_radius,root.background_radius,max(1,root.height))
rounded_rectangle: (self.x + root.outline_width, self.y + root.outline_width, self.width - 2 * root.outline_width, self.height - 2*root.outline_width, root.background_radius,root.background_radius,root.background_radius,root.background_radius,max(1,root.height))
width: root.outline_width or 1
@@ -475,7 +475,7 @@
rgba: BOX_BACKGROUND_COLOR
Line:
width: 1
points: (*self.pos,self.x+self.width,self.y)
points: (self.x,self.y+1,self.x+self.width,self.y+1)
<ControlsPanel>:
@@ -512,6 +512,12 @@
id: timer_or_movetree
size_hint_y: None
height: root.timer_box_height
canvas.before:
Color:
rgba: RED
Line:
rectangle: (*self.pos,*self.size)
width: 1
BoxLayout:
size_hint_x: 0.0001 if self.parent.mode != MODE_PLAY else 1
opacity: 0 if self.parent.mode != MODE_PLAY else 1
@@ -590,10 +596,11 @@
orientation: 'vertical'
ScrollableLabel:
id: status
error: False
size_hint: 1, None
height: min(self.parent.height*0.66,self.label.texture_size[1])
outline_color: RED
background_color: DARKRED
outline_color: RED if self.error else WHITE
background_color: LIGHTER_BACKGROUND_COLOR # DARKRED
ScrollableLabel:
id: info
detailed: False
@@ -803,7 +810,7 @@
icon_size: self.height * 0.75, self.height * 0.75
<MenuLabel@Label+BackgroundMixin>:
<MenuLabel@BackgroundMixin+Label>:
background_color: BACKGROUND_COLOR
font_size: self.height * 0.5
height: self.parent.item_height or 50
+2 -1
View File
@@ -82,9 +82,10 @@ class ControlsPanel(BoxLayout):
def set_status(self, msg, status_type, at_node=None):
at_node = at_node or self.katrain and self.katrain.game and self.katrain.game.current_node
if at_node != self.status_state[2] or int(status_type) >= int(self.status_state[1]):
if at_node != self.status_state[2] or int(status_type) >= int(self.status_state[1]) or msg=="":
self.status_state = (msg, status_type, at_node)
self.status.text = msg
self.status.error = status_type==STATUS_ERROR
Clock.schedule_once(self.update_evaluation, 0)
# handles showing completed analysis and score graph
+1
View File
@@ -447,6 +447,7 @@ class ConfigPopup(QuickConfigGui):
if detected_restart:
def restart_engine(_dt):
self.katrain.controls.set_status("", STATUS_INFO)
self.katrain.log(f"Restarting Engine after {detected_restart} settings change")
self.katrain.controls.set_status(i18n._("restarting engine"), STATUS_INFO)