diff options
author | Rory MacQueen <rorymacqueen@gmail.com> | 2013-09-30 18:27:49 -0700 |
---|---|---|
committer | Rory MacQueen <rorymacqueen@gmail.com> | 2013-10-01 10:03:11 -0700 |
commit | e3c9ea1cb19dc4d381c263b718ffd24e5ef55438 (patch) | |
tree | 1162c96560f4f82ee3adfa64834241720aa3ce41 | |
parent | e17e7600545cfdfa5da41a3dba6cb31292e77e96 (diff) |
Gave category page back button a name
Previously this asset button did not have a name
and we were just styling it by styling the Gjs AssetButton.
However, this will not work when we want to add other asset
buttons with different styling, so giving it its own name
[endlessm/eos-sdk#301]
-rw-r--r-- | data/css/eos-wikipedia-domain.css | 4 | ||||
-rw-r--r-- | wikipedia/PrebuiltCategoryPage.js | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/data/css/eos-wikipedia-domain.css b/data/css/eos-wikipedia-domain.css index 715f20f..2b20fb5 100644 --- a/data/css/eos-wikipedia-domain.css +++ b/data/css/eos-wikipedia-domain.css @@ -89,12 +89,12 @@ Gjs_CategoryButton GtkEventBox:hover { background-color: rgba(0, 0, 0, 0.2); } -Gjs_AssetButton { +#category_page_back_button { font-weight: bold; color: alpha(white, 0.0); } -Gjs_AssetButton:prelight { +#category_page_back_button:prelight { text-shadow: 0px 1px 0px alpha(#000000, 0.5), 0px 0px 12px alpha(#000000, 0.3); color: alpha(white, 1.0); } diff --git a/wikipedia/PrebuiltCategoryPage.js b/wikipedia/PrebuiltCategoryPage.js index fad4fcd..be20547 100644 --- a/wikipedia/PrebuiltCategoryPage.js +++ b/wikipedia/PrebuiltCategoryPage.js @@ -122,7 +122,8 @@ const PrebuiltCategoryPage = new Lang.Class({ normal_image_uri: "resource://com/endlessm/wikipedia-domain/assets/introduction_back_button_normal.png", active_image_uri: "resource://com/endlessm/wikipedia-domain/assets/introduction_back_button_pressed.png", prelight_image_uri: "resource://com/endlessm/wikipedia-domain/assets/introduction_back_button_hover.png", - label: _("OTHER CATEGORIES") + label: _("OTHER CATEGORIES"), + name: "category_page_back_button" }); this._back_button.connect('clicked', Lang.bind(this, function() { |