refactor: use Pango for font scaling instead of CSS classes
- Replace CSS-based zoom (px1-px99 classes) with Pango.FontDescription - Fix bug in multi-insert: insert at start_itr instead of end_itr - Add Pango-based font setup for mini-view widget - Revamp stylesheet with Light Blue-Grey Glass theme
This commit is contained in:
@@ -42,6 +42,9 @@ class CenterContainer(Gtk.Box):
|
||||
|
||||
glade_box = widget_registery.get_object("glade_box")
|
||||
button = Gtk.Button(label = "Click Me!")
|
||||
webkit_ui = WebkitUI()
|
||||
|
||||
webkit_ui.load_context_base_path()
|
||||
|
||||
button.connect("clicked", self._hello_world)
|
||||
|
||||
@@ -50,7 +53,7 @@ class CenterContainer(Gtk.Box):
|
||||
|
||||
self.add(button)
|
||||
self.add(glade_box)
|
||||
self.add( WebkitUI() )
|
||||
self.add(webkit_ui)
|
||||
|
||||
def _hello_world(self, widget = None, eve = None):
|
||||
logger.debug("Hello, World!")
|
||||
Reference in New Issue
Block a user