mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-25 10:09:20 +03:00
Add use_native_scrollbars setting
This commit is contained in:
parent
c2ab03f69c
commit
99cdd1f43f
3 changed files with 10 additions and 3 deletions
9
dev/External/ko.js
vendored
9
dev/External/ko.js
vendored
|
|
@ -756,8 +756,13 @@
|
||||||
|
|
||||||
ko.bindingHandlers.nano = {
|
ko.bindingHandlers.nano = {
|
||||||
'init': function (oElement) {
|
'init': function (oElement) {
|
||||||
var Globals = require('Common/Globals');
|
|
||||||
if (!Globals.bDisableNanoScroll)
|
var
|
||||||
|
Globals = require('Common/Globals'),
|
||||||
|
Settings = require('Storage/Settings')
|
||||||
|
;
|
||||||
|
|
||||||
|
if (!Globals.bDisableNanoScroll && !Settings.appSettingsGet('useNativeScrollbars'))
|
||||||
{
|
{
|
||||||
$(oElement)
|
$(oElement)
|
||||||
.addClass('nano')
|
.addClass('nano')
|
||||||
|
|
|
||||||
|
|
@ -1473,6 +1473,7 @@ class Actions
|
||||||
'materialDesign' => (bool) $oConfig->Get('labs', 'use_material_design', true),
|
'materialDesign' => (bool) $oConfig->Get('labs', 'use_material_design', true),
|
||||||
'folderSpecLimit' => (int) $oConfig->Get('labs', 'folders_spec_limit', 50),
|
'folderSpecLimit' => (int) $oConfig->Get('labs', 'folders_spec_limit', 50),
|
||||||
'faviconStatus' => (bool) $oConfig->Get('labs', 'favicon_status', true),
|
'faviconStatus' => (bool) $oConfig->Get('labs', 'favicon_status', true),
|
||||||
|
'useNativeScrollbars' => (bool) $oConfig->Get('interface', 'use_native_scrollbars', false),
|
||||||
'listPermanentFiltered' => '' !== \trim(\RainLoop\Api::Config()->Get('labs', 'imap_message_list_permanent_filter', '')),
|
'listPermanentFiltered' => '' !== \trim(\RainLoop\Api::Config()->Get('labs', 'imap_message_list_permanent_filter', '')),
|
||||||
'themes' => $this->GetThemes($bMobile, false),
|
'themes' => $this->GetThemes($bMobile, false),
|
||||||
'languages' => $this->GetLanguages(false),
|
'languages' => $this->GetLanguages(false),
|
||||||
|
|
|
||||||
|
|
@ -159,7 +159,8 @@ class Application extends \RainLoop\Config\AbstractConfig
|
||||||
),
|
),
|
||||||
|
|
||||||
'interface' => array(
|
'interface' => array(
|
||||||
'show_attachment_thumbnail' => array(true, '')
|
'show_attachment_thumbnail' => array(true, ''),
|
||||||
|
'use_native_scrollbars' => array(false)
|
||||||
),
|
),
|
||||||
|
|
||||||
'branding' => array(
|
'branding' => array(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue