Bigger Fonts and icons (#169)
This commit is contained in:
parent
93c7010dc0
commit
17da2b3d4e
@ -10,7 +10,7 @@ klipperscreendir = os.getcwd()
|
||||
|
||||
class KlippyGtk:
|
||||
labels = {}
|
||||
font_ratio = [51, 30]
|
||||
font_ratio = [43, 29]
|
||||
keyboard_ratio = .22
|
||||
width_ratio = 16
|
||||
height_ratio = 9.375
|
||||
@ -136,7 +136,7 @@ class KlippyGtk:
|
||||
|
||||
return b
|
||||
|
||||
def ButtonImage(self, image_name, label=None, style=None, width_scale=1, height_scale=1,
|
||||
def ButtonImage(self, image_name, label=None, style=None, width_scale=1.38, height_scale=1.38,
|
||||
position=Gtk.PositionType.TOP, word_wrap=True):
|
||||
filename = "%s/styles/%s/images/%s.svg" % (klipperscreendir, self.theme, str(image_name))
|
||||
if not os.path.exists(filename):
|
||||
@ -205,7 +205,7 @@ class KlippyGtk:
|
||||
return dialog
|
||||
|
||||
|
||||
def ToggleButtonImage(self, image_name, label, style=False, width_scale=1, height_scale=1):
|
||||
def ToggleButtonImage(self, image_name, label, style=False, width_scale=1.38, height_scale=1.38):
|
||||
filename = "%s/styles/%s/images/%s.svg" % (klipperscreendir, self.theme, str(image_name))
|
||||
pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_scale(
|
||||
filename,
|
||||
|
@ -141,9 +141,9 @@ class TemperaturePanel(ScreenPanel):
|
||||
for i in range(len(keys)):
|
||||
id = 'button_' + str(keys[i][0])
|
||||
if keys[i][0] == "B":
|
||||
self.labels[id] = self._gtk.ButtonImage("backspace")
|
||||
self.labels[id] = self._gtk.ButtonImage("backspace", None, None, 1, 1)
|
||||
elif keys[i][0] == "E":
|
||||
self.labels[id] = self._gtk.ButtonImage("complete")
|
||||
self.labels[id] = self._gtk.ButtonImage("complete", None, None, 1, 1)
|
||||
else:
|
||||
self.labels[id] = Gtk.Button(keys[i][0])
|
||||
self.labels[id].connect('clicked', self.update_entry, keys[i][0])
|
||||
@ -156,7 +156,7 @@ class TemperaturePanel(ScreenPanel):
|
||||
self.labels['entry'].props.xalign = 0.5
|
||||
ctx = self.labels['entry'].get_style_context()
|
||||
|
||||
b = self._gtk.ButtonImage('cancel', _('Close'))
|
||||
b = self._gtk.ButtonImage('cancel', _('Close'), None, 1, 1)
|
||||
b.connect("clicked", self.hide_numpad)
|
||||
|
||||
box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
|
||||
|
Loading…
x
Reference in New Issue
Block a user