From 8bff3032e10324c11aaa16433fde6e1b7a066bc1 Mon Sep 17 00:00:00 2001 From: zkk <1007518571@qq.com> Date: Wed, 10 Jul 2024 15:08:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=95=B0=E5=AD=97=E9=94=AE?= =?UTF-8?q?=E7=9B=98=E6=98=BE=E7=A4=BA=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ks_includes/widgets/keypad.py | 2 ++ styles/dark/style.css | 9 ++++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ks_includes/widgets/keypad.py b/ks_includes/widgets/keypad.py index 4f029bb1..10f275a1 100644 --- a/ks_includes/widgets/keypad.py +++ b/ks_includes/widgets/keypad.py @@ -47,6 +47,7 @@ class Keypad(Gtk.Box): self.labels["keypad"] = Gtk.Box(orientation=Gtk.Orientation.VERTICAL) self.labels['entry'] = Gtk.Entry() + self.labels['entry'].set_size_request(-1, 65) self.labels['entry'].props.xalign = 0.5 self.labels['entry'].connect("activate", self.update_entry, "E") @@ -68,6 +69,7 @@ class Keypad(Gtk.Box): def show_pid(self, can_pid): self.pid.set_visible(can_pid) + self.pid.set_sensitive(False) def clear(self): self.labels['entry'].set_text("") diff --git a/styles/dark/style.css b/styles/dark/style.css index 3971ba49..85ee9c1e 100644 --- a/styles/dark/style.css +++ b/styles/dark/style.css @@ -9,6 +9,7 @@ @define-color black-opa-5 rgba(0, 0, 0, 0.05); @define-color black-opa-10 rgba(0, 0, 0, 0.1); +@define-color black-opa-80 rgba(0, 0, 0, 0.8); @define-color blue-opa-10 rgba(29, 140, 198, 0.5); @define-color blue-opa-100 rgba(29, 140, 198, 1); @@ -149,7 +150,7 @@ switch:checked { entry { background-color: @white-opa-20; border-color: @white-opa-100; - border-width: .1em; + border-width: 0; } label { @@ -241,8 +242,10 @@ textview .time { } .numpad_key { - border-color: @white-opa-100; - background-color: @white-opa-20; + border-radius: 0; + border-width: 3; + border-color: @black-opa-80; + background-color: @white-opa-10; } .printing-status {