Skip to content

Commit

Permalink
going to try and get icons displaying
Browse files Browse the repository at this point in the history
  • Loading branch information
bsclifton committed Oct 29, 2018
1 parent 7de605f commit 3acb5c7
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 28 deletions.
1 change: 1 addition & 0 deletions browser/resources/settings/settings_resources.grd
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
<structure name="IDR_SETTINGS_BRAVE_PERSONALIZATION_OPTIONS_JS" file="brave_privacy_page/brave_personalization_options.js" type="chrome_html" preprocess="true" />
<structure name="IDR_SETTINGS_BRAVE_PRIVACY_PAGE_BROWSER_PROXY_HTML" file="brave_privacy_page/brave_privacy_page_browser_proxy.html" type="chrome_html" />
<structure name="IDR_SETTINGS_BRAVE_PRIVACY_PAGE_BROWSER_PROXY_JS" file="brave_privacy_page/brave_privacy_page_browser_proxy.js" type="chrome_html" preprocess="true" />
<structure name="IDR_SETTINGS_BRAVE_SETTINGS_MENU_ICONS_HTML" file="brave_settings_menu/icons.html" type="chrome_html" />
</structures>
<includes>
<include name="IDR_SETTINGS_BRAVE_STAMP" file="brave_unpack.stamp" type="BINDATA" />
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
diff --git a/chrome/browser/resources/settings/settings_menu/settings_menu.html b/chrome/browser/resources/settings/settings_menu/settings_menu.html
index f8f22e9b9c95a9355abe36a173ad10c615a9a85f..6155bccb9fcb980e1e0ecb376877dd2940d86e7e 100644
index f8f22e9b9c95a9355abe36a173ad10c615a9a85f..77ef589ae3f91ab3d2d85889e3aa40e86724c0dd 100644
--- a/chrome/browser/resources/settings/settings_menu/settings_menu.html
+++ b/chrome/browser/resources/settings/settings_menu/settings_menu.html
@@ -14,19 +14,24 @@
@@ -10,23 +10,32 @@
<link rel="import" href="../route.html">
<link rel="import" href="../settings_shared_css.html">

+<if expr="not _google_chrome">
+<link rel="import" href="../brave_settings_menu/icons.html">
+</if>
+
<dom-module id="settings-menu">
<template>
<style include="settings-shared">
:host {
Expand Down Expand Up @@ -33,7 +41,7 @@ index f8f22e9b9c95a9355abe36a173ad10c615a9a85f..6155bccb9fcb980e1e0ecb376877dd29
margin-inline-end: 2px; /* Margin so selected outline is visible. */
margin-inline-start: 1px;
min-height: 20px;
@@ -35,10 +40,32 @@
@@ -35,10 +44,32 @@
padding-top: 10px;
}

Expand Down Expand Up @@ -67,23 +75,23 @@ index f8f22e9b9c95a9355abe36a173ad10c615a9a85f..6155bccb9fcb980e1e0ecb376877dd29
iron-icon {
--iron-icon-fill-color: var(--settings-nav-grey);
margin-inline-end: 24px;
@@ -48,6 +75,7 @@
@@ -48,6 +79,7 @@

.iron-selected > iron-icon {
fill: var(--google-blue-700);
+ font-weight: bold;
}

#advancedButton {
@@ -77,7 +105,6 @@
@@ -77,7 +109,6 @@
#advancedButton > iron-icon,
#extensionsLink > iron-icon {
@apply --cr-icon-height-width;
- margin-inline-end: 14px; /* 16px - 2px from margin for outline. */
}

#menuSeparator {
@@ -86,10 +113,19 @@
@@ -86,10 +117,19 @@
margin-bottom: 8px;
margin-top: 8px;
}
Expand All @@ -103,7 +111,7 @@ index f8f22e9b9c95a9355abe36a173ad10c615a9a85f..6155bccb9fcb980e1e0ecb376877dd29
<if expr="chromeos">
<a href="/internet">
<iron-icon icon="settings:network-wifi"></iron-icon>
@@ -104,10 +140,11 @@
@@ -104,10 +144,11 @@
<iron-icon icon="cr:person"></iron-icon>
$i18n{peoplePageTitle}
</a>
Expand All @@ -114,24 +122,33 @@ index f8f22e9b9c95a9355abe36a173ad10c615a9a85f..6155bccb9fcb980e1e0ecb376877dd29
+ <a id="extensionsLink" href="chrome://extensions" target="_blank"
+ on-click="onExtensionsLinkClick_"
+ title="$i18n{extensionsLinkTooltip}">
+ <iron-icon icon="cr:extension"></iron-icon>
+ <iron-icon icon="brave_settings:misc-extensions"></iron-icon>
+ $i18n{extensionsPageTitle}
</a>
<if expr="chromeos">
<a href="/device">
@@ -143,6 +180,11 @@
@@ -116,7 +157,7 @@
</a>
</if>
<a href="/search">
- <iron-icon icon="cr:search"></iron-icon>
+ <iron-icon icon="brave_settings:mag-glass-search"></iron-icon>
$i18n{searchPageTitle}
</a>
<if expr="chromeos">
@@ -143,6 +184,11 @@
<iron-icon icon="settings:power-settings-new"></iron-icon>
$i18n{onStartup}
</a>
+ <a id="appearance" href="/appearance"
+ hidden="[[!pageVisibility.appearance]]">
+ <iron-icon icon="settings:palette"></iron-icon>
+ <iron-icon icon="brave_settings:square-tab-settings"></iron-icon>
+ $i18n{appearancePageTitle}
+ </a>
<paper-button toggles id="advancedButton"
aria-active-attribute="aria-expanded" active="{{advancedOpened}}"
hidden="[[!pageVisibility.advancedSettings]]">
@@ -188,10 +230,12 @@
@@ -188,10 +234,12 @@
$i18n{multidevicePageTitle}
</a>
</if>
Expand All @@ -144,7 +161,7 @@ index f8f22e9b9c95a9355abe36a173ad10c615a9a85f..6155bccb9fcb980e1e0ecb376877dd29
<if expr="not chromeos">
<a href="/system">
<iron-icon icon="settings:build"></iron-icon>
@@ -205,13 +249,13 @@
@@ -205,13 +253,13 @@
</iron-selector>
</iron-collapse>
<div id="menuSeparator"></div>
Expand All @@ -154,7 +171,7 @@ index f8f22e9b9c95a9355abe36a173ad10c615a9a85f..6155bccb9fcb980e1e0ecb376877dd29
- <span>$i18n{extensionsPageTitle}</span>
- <iron-icon class="cr-icon icon-external" actionable></iron-icon>
+ <a id="about-menu" href="/help">
+ <iron-icon icon="settings:web"></iron-icon>
+ <iron-icon icon="brave_settings:full-color-brave-lion"></iron-icon>
+ <div id="aboutMenuText">
+ <div>$i18n{aboutPageTitle}</div>
+ <div>$i18n{braveProductVersion}</div>
Expand Down
14 changes: 0 additions & 14 deletions script/chromium-rebase-l10n.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,6 @@ def main():
content = ''
xml_tree = etree.parse(source_string_path)

# BSC - not sure how to properly add this
# in an older version of the code, it looked like this:
# # Add IDR_SETTINGS_BRAVE_SETTINGS_MENU_ICONS_HTML(icons.html)
# brave_settings_menu_icons_html_element_len = len(xml_tree.xpath('//structure[@name="IDR_SETTINGS_BRAVE_SETTINGS_MENU_ICONS_HTML"]'))
# if brave_settings_menu_icons_html_element_len == 0:
# brave_settings_menu_icons_html_element = etree.Element('structure')
# brave_settings_menu_icons_html_element.set('name', 'IDR_SETTINGS_BRAVE_SETTINGS_MENU_ICONS_HTML')
# brave_settings_menu_icons_html_element.set('file', 'brave_settings_menu/icons.html')
# brave_settings_menu_icons_html_element.set('type', 'chrome_html')
# brave_settings_menu_icons_html_element.set('preprocess', 'true')
# brave_settings_menu_icons_html_element.set('allowexternalscript', 'true')
# settings_menu_html_element = xml_tree.xpath('//structure[@name="IDR_SETTINGS_CR_SETTINGS_MENU_HTML"]')[0]
# settings_menu_html_element.addnext(brave_settings_menu_icons_html_element)

if filename == 'brave_strings':
elem1 = xml_tree.xpath('//message[@name="IDS_SXS_SHORTCUT_NAME"]')[0]
elem1.text = 'Brave Nightly'
Expand Down

0 comments on commit 3acb5c7

Please sign in to comment.