-
Notifications
You must be signed in to change notification settings - Fork 814
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Grouping sidebar related options together in settings
fix brave/brave-browser#25717 Several sidebar options are grouped and located under autocomplete suggestion option. Always show ful urls option is relocated under Use wide address bar
- Loading branch information
Showing
7 changed files
with
70 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 41 additions & 14 deletions
55
browser/resources/settings/brave_appearance_page/sidebar.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,48 @@ | ||
<style include="settings-shared iron-flex"> | ||
.settings-box.bottom-border { | ||
border-top: none; | ||
.border { | ||
border-top: var(--cr-separator-line); | ||
border-bottom: var(--cr-separator-line); | ||
} | ||
</style> | ||
<div class="settings-box bottom-border"> | ||
<div class="flex" id="labelWrapper" aria-hidden="true"> | ||
<div class="label">$i18n{appearanceSettingsShowOptionTitle}</div> | ||
<div class="secondary label" id="sub-label"> | ||
<span id="sub-label-text" aria-hidden="true"> | ||
[[sidebarShowEnabledLabel_]] | ||
</span> | ||
|
||
<div class="cr-row">$i18n{sideBar}</div> | ||
<div class="list-frame"> | ||
<div class="cr-row list-item"> | ||
<div class="flex" id="labelWrapper" aria-hidden="true"> | ||
<div class="label">$i18n{appearanceSettingsShowOptionTitle}</div> | ||
<div class="secondary label" id="sub-label"> | ||
<span id="sub-label-text" aria-hidden="true"> | ||
[[sidebarShowEnabledLabel_]] | ||
</span> | ||
</div> | ||
</div> | ||
<settings-dropdown-menu | ||
pref="{{prefs.brave.sidebar.sidebar_show_option}}" | ||
on-settings-control-change="onShowOptionChanged_" | ||
menu-options="[[sidebarShowOptions_]]"> | ||
</settings-dropdown-menu> | ||
</div> | ||
<settings-dropdown-menu | ||
pref="{{prefs.brave.sidebar.sidebar_show_option}}" | ||
on-settings-control-change="onShowOptionChanged_" | ||
menu-options="[[sidebarShowOptions_]]"> | ||
</settings-dropdown-menu> | ||
<settings-toggle-button | ||
class="cr-row border list-item" | ||
pref="{{prefs.brave.show_side_panel_button}}" | ||
label="$i18n{appearanceSettingsShowSidebarButton}"> | ||
</settings-toggle-button> | ||
<settings-radio-group | ||
pref="{{prefs.side_panel.is_right_aligned}}" | ||
group-aria-label="$i18n{sideBar}"> | ||
<controlled-radio-button | ||
class="list-item" | ||
pref="[[prefs.side_panel.is_right_aligned]]" | ||
label="$i18n{sidePanelAlignLeft}" | ||
name="false" | ||
no-extension-indicator> | ||
</controlled-radio-button> | ||
<controlled-radio-button | ||
class="list-item" | ||
pref="[[prefs.side_panel.is_right_aligned]]" | ||
label="$i18n{sidePanelAlignRight}" | ||
name="true" | ||
no-extension-indicator> | ||
</controlled-radio-button> | ||
</settings-radio-group> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters