You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the omni bar and the run button are grouped into one GtkBox. This, however, means that the omni bar will not be centered to the window's axis.
In GNOME Builder, a custom child type was implemented to solve this issue. This child type, right-of-center, is defined in a template header bar class. We should do the same.
Other solutions are welcomed.
Acceptance criteria
Get the omnibar to be centered and other components stick to its sides
Progress
I found out that we can use GtkCenterBox. However, I can't use the center-widget, end-widget, and start-widget props in Blueprint. The doc doesn't mention anything deprecated. I don't know if this is Blueprint's fault or if I'm using the props wrong.
After some digging, I found a workaround. The doc mentioned two way of setting widgets to these positions.
a. Use the method Gtk.CenterBox.set_center_widget etc
b. Assign widget to the center-widget property
c. Set child with type center-wigdet etc, via GtkBuildable
I want the creation of static UI components to be decoupled from app logic so I avoided a. I chose method b but did not work. I forgot method c, and so far it worked.
This is weird. I've always assumed that you can assign things to a property both in UI template and in code.
The text was updated successfully, but these errors were encountered:
Currently, the omni bar and the run button are grouped into one
GtkBox
. This, however, means that the omni bar will not be centered to the window's axis.In GNOME Builder, a custom child type was implemented to solve this issue. This child type,
right-of-center
, is defined in a template header bar class. We should do the same.Other solutions are welcomed.
Acceptance criteria
Progress
I found out that we can use
GtkCenterBox
. However, I can't use the center-widget, end-widget, and start-widget props in Blueprint. The doc doesn't mention anything deprecated. I don't know if this is Blueprint's fault or if I'm using the props wrong.After some digging, I found a workaround. The doc mentioned two way of setting widgets to these positions.
a. Use the method
Gtk.CenterBox.set_center_widget
etcb. Assign widget to the
center-widget
propertyc. Set child with type
center-wigdet
etc, via GtkBuildableI want the creation of static UI components to be decoupled from app logic so I avoided a. I chose method b but did not work. I forgot method c, and so far it worked.
This is weird. I've always assumed that you can assign things to a property both in UI template and in code.
The text was updated successfully, but these errors were encountered: