Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
World
Design Tooling
Contrast
Commits
6a1ab920
Commit
6a1ab920
authored
Aug 06, 2019
by
Bilal Elmoussaoui
Browse files
Correctly v-center the widgets
parent
11aef097
Pipeline
#102149
passed with stages
in 7 minutes and 54 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/window.rs
View file @
6a1ab920
...
...
@@ -124,6 +124,7 @@ impl Window {
fn
setup_widgets
(
&
self
)
{
let
container
=
gtk
::
Box
::
new
(
gtk
::
Orientation
::
Vertical
,
0
);
container
.get_style_context
()
.add_class
(
"main-container"
);
container
.set_valign
(
gtk
::
Align
::
Center
);
container
.show
();
self
.fg_entry.entry
.get_style_context
()
.add_class
(
"fg-entry"
);
...
...
@@ -143,8 +144,8 @@ impl Window {
entries_container
.show
();
self
.headerbar
.set_custom_title
(
Some
(
&
entries_container
));
container
.pack_start
(
&
self
.preview
.borrow
()
.widget
,
true
,
true
,
0
);
container
.pack_start
(
&
self
.levelbar
.borrow
()
.widget
,
false
,
false
,
0
);
container
.pack_start
(
&
self
.preview
.borrow
()
.widget
,
true
,
true
,
18
);
container
.pack_start
(
&
self
.levelbar
.borrow
()
.widget
,
false
,
false
,
18
);
self
.widget
.add
(
&
container
);
// Restore state
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment