Changed content layout
This commit is contained in:
parent
e51f706462
commit
630a140d2f
@ -8,8 +8,7 @@ from gi.repository import Gtk
|
||||
# Application imports
|
||||
from .left_box import LeftBox
|
||||
from .right_box import RightBox
|
||||
from ..widgets.button_controls import ButtonControls
|
||||
from ..widgets.path_label import PathLabel
|
||||
|
||||
|
||||
|
||||
class BaseContainer(Gtk.Box):
|
||||
@ -24,21 +23,13 @@ class BaseContainer(Gtk.Box):
|
||||
|
||||
|
||||
def _setup_styling(self):
|
||||
self.set_orientation(Gtk.Orientation.VERTICAL)
|
||||
self.set_orientation(Gtk.Orientation.HORIZONTAL)
|
||||
ctx = self.get_style_context()
|
||||
ctx.add_class("container-padding-5px")
|
||||
|
||||
def _setup_signals(self):
|
||||
...
|
||||
|
||||
def _load_widgets(self):
|
||||
box = Gtk.Box()
|
||||
box2 = Gtk.Box()
|
||||
box.set_orientation(Gtk.Orientation.VERTICAL)
|
||||
box2.set_orientation(Gtk.Orientation.HORIZONTAL)
|
||||
|
||||
box.add(ButtonControls())
|
||||
box.add(PathLabel())
|
||||
box2.add(LeftBox())
|
||||
box2.add(RightBox())
|
||||
|
||||
self.add(box)
|
||||
self.add(box2)
|
||||
self.add(LeftBox())
|
||||
self.add(RightBox())
|
||||
|
@ -8,6 +8,8 @@ from gi.repository import Gtk
|
||||
from gi.repository import Gdk
|
||||
|
||||
# Application imports
|
||||
from ..widgets.button_controls import ButtonControls
|
||||
from ..widgets.path_label import PathLabel
|
||||
from .image_view_scroll import ImageViewScroll
|
||||
|
||||
|
||||
@ -32,4 +34,6 @@ class RightBox(Gtk.Box):
|
||||
...
|
||||
|
||||
def _load_widgets(self):
|
||||
self.add(ButtonControls())
|
||||
self.add(PathLabel())
|
||||
self.add(ImageViewScroll())
|
||||
|
@ -4,6 +4,10 @@
|
||||
border: 2px solid rgba(56, 56, 56, 1);
|
||||
}
|
||||
|
||||
.container-padding-5px {
|
||||
margin: 5px;
|
||||
}
|
||||
|
||||
.button-highlighted {
|
||||
background-color: #AB7E45;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user