Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
First stab at configurable UI scaling
Browse files Browse the repository at this point in the history
Doesn't affect page size; scaling is for the UI elements

Fixes #1937
  • Loading branch information
bsclifton authored and bradleyrichter committed Apr 21, 2017
1 parent a1a8164 commit 35175ce
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions js/about/preferences.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const settings = require('../constants/settings')
const {changeSetting} = require('../../app/renderer/lib/settingsUtil')
const {passwordManagers, extensionIds} = require('../constants/passwordManagers')
const {startsWithOption, newTabMode, bookmarksToolbarMode, tabCloseAction, fullscreenOption} = require('../../app/common/constants/settingsEnums')
const {scaleSize} = require('../../app/common/constants/toolbarUserInterfaceScale')

const aboutActions = require('./aboutActions')
const appActions = require('../actions/appActions')
Expand Down Expand Up @@ -230,6 +231,17 @@ class GeneralTab extends ImmutableComponent {
}
</SettingDropdown>
</SettingItem>
<SettingItem dataL10nId='toolbarUserInterfaceScale'>
<SettingDropdown
value={getSetting(settings.TOOLBAR_UI_SCALE, this.props.settings)}
onChange={changeSetting.bind(null, this.props.onChangeSetting, settings.TOOLBAR_UI_SCALE)}>
data-type='float'>
<option value={scaleSize.SMALLER}>Smaller</option>
<option value={scaleSize.NORMAL}>Normal</option>
<option value={scaleSize.LARGER}>Larger</option>
<option value={scaleSize.SUPERSIZE}>Supersize</option>
</SettingDropdown>
</SettingItem>
<SettingItem dataL10nId='importBrowserData'>
<Button l10nId='importNow' className='primaryButton importNowButton'
onClick={this.importBrowserDataNow} />
Expand Down

0 comments on commit 35175ce

Please sign in to comment.