Commit a99aa79c authored by Yosef Or Boczko's avatar Yosef Or Boczko Committed by Meg Ford

Fix the margin in the toolbar in RTL

https://bugzilla.gnome.org/show_bug.cgi?id=722872Signed-off-by: Meg Ford's avatarMeg Ford <meg387@gmail.com>
parent 3585eae8
......@@ -22,6 +22,10 @@
border-radius: 0px;
}
.view .toolbarEnd {
.view .toolbarEnd:dir(ltr) {
border-left: rgba(255,255,255,0.45) 1px solid;
}
.view .toolbarEnd:dir(rtl) {
border-right: rgba(255,255,255,0.45) 1px solid;
}
......@@ -364,6 +364,8 @@ const MainView = new Lang.Class({
this._group = new Gtk.ToolItem({ child: this._box, name: "PlayGroup"});
this.widget.insert(this._group, -1);
let rtl = Gtk.Widget.get_default_direction() == Gtk.TextDirection.RTL;
// play button
this.playImage = Gtk.Image.new();
this.playImage.set_from_icon_name('media-playback-start-symbolic', Gtk.IconSize.BUTTON);
......@@ -416,7 +418,8 @@ const MainView = new Lang.Class({
xalign: 0,
width_chars: 40,
margin_top: 5,
margin_left: 15,
margin_left: rtl ? 0 : 15,
margin_right: rtl ? 15 : 0,
name: "FileNameLabel" });
let markup = ('<b>'+ this._files[i].fileName + '</b>');
this._fileName.label = markup;
......@@ -430,7 +433,8 @@ const MainView = new Lang.Class({
this.rowGrid.attach(this._playLabelBox, 2, 1, 1, 1);
this._playLabelBox.show();
this.playDurationLabel = new Gtk.Label({ margin_left: 15,
this.playDurationLabel = new Gtk.Label({ margin_left: rtl ? 0 : 15,
margin_right: rtl ? 15 : 0,
halign: Gtk.Align.END,
valign: Gtk.Align.END,
margin_top: 5,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment