summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorP. F. Chimento <philip.chimento@gmail.com>2016-05-31 10:31:01 -0700
committerP. F. Chimento <philip.chimento@gmail.com>2016-05-31 10:31:01 -0700
commit8fcfa5508a9342ca7b455b54bbfcbd24455270d5 (patch)
treeabc06a323c502a892962df3b834e6e52e7540352
parentc8ba991a6bd9f4637fe8c9c13a6822d194d24686 (diff)
parent303e56e5c82f5096a22bde784b49dc98832d8043 (diff)
Merge pull request #4145 from endlessm/T11778
topbar_nav_button: use standard upstream icons https://phabricator.endlessm.com/T11778
-rw-r--r--overrides/endless_private/topbar_nav_button.js16
1 files changed, 3 insertions, 13 deletions
diff --git a/overrides/endless_private/topbar_nav_button.js b/overrides/endless_private/topbar_nav_button.js
index e49eb4b..f58e627 100644
--- a/overrides/endless_private/topbar_nav_button.js
+++ b/overrides/endless_private/topbar_nav_button.js
@@ -23,25 +23,15 @@ const TopbarNavButton = new Lang.Class({
props.orientation = Gtk.Orientation.HORIZONTAL;
this.parent(props);
- let back_button_image;
- let forward_button_image;
- let is_rtl = (Gtk.Widget.get_default_direction() === Gtk.TextDirection.RTL);
- if (is_rtl) {
- back_button_image = 'topbar-go-previous-rtl-symbolic';
- forward_button_image = 'topbar-go-next-rtl-symbolic';
- } else {
- back_button_image = 'topbar-go-previous-symbolic';
- forward_button_image = 'topbar-go-next-symbolic';
- }
-
- this._back_button = Gtk.Button.new_from_icon_name(back_button_image,
+ this._back_button = Gtk.Button.new_from_icon_name('go-previous-symbolic',
Gtk.IconSize.SMALL_TOOLBAR);
- this._forward_button = Gtk.Button.new_from_icon_name(forward_button_image,
+ this._forward_button = Gtk.Button.new_from_icon_name('go-next-symbolic',
Gtk.IconSize.SMALL_TOOLBAR);
this._back_button.get_style_context().add_class('back');
this._forward_button.get_style_context().add_class('forward');
+ let is_rtl = (Gtk.Widget.get_default_direction() === Gtk.TextDirection.RTL);
if (is_rtl) {
this._back_button.get_style_context().add_class('rtl');
this._forward_button.get_style_context().add_class('rtl');