Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Plasma Mobile
Angelfish
Commits
05281027
Verified
Commit
05281027
authored
Mar 06, 2020
by
Jonah Brüchert
🌳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Settings: Fix visual inconsistencies
parent
8f272539
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
31 deletions
+43
-31
src/contents/ui/Settings.qml
src/contents/ui/Settings.qml
+43
-31
No files found.
src/contents/ui/Settings.qml
View file @
05281027
...
...
@@ -26,7 +26,6 @@ import QtQuick.Layouts 1.11
import
org
.
kde
.
kirigami
2.7
as
Kirigami
import
org
.
kde
.
mobile
.
angelfish
1.0
Kirigami.ScrollablePage
{
title
:
i18n
(
"
Settings
"
)
...
...
@@ -46,36 +45,36 @@ Kirigami.ScrollablePage {
spacing
:
0
Kirigami.AbstractListItem
{
width
:
parent
.
width
Controls.CheckBox
{
text
:
i18n
(
"
Enable JavaScript
"
)
Layout.fillWidth
:
true
onCheckedChanged
:
{
var
settings
=
currentWebView
.
settings
;
settings
.
javascriptEnabled
=
checked
;
// FIXME: save to config
}
Component.onCompleted
:
{
checked
=
currentWebView
.
settings
.
javascriptEnabled
;
}
Controls.SwitchDelegate
{
text
:
i18n
(
"
Enable JavaScript
"
)
Layout.fillWidth
:
true
onCheckedChanged
:
{
var
settings
=
currentWebView
.
settings
settings
.
javascriptEnabled
=
checked
// FIXME: save to config
}
Component.onCompleted
:
{
checked
=
currentWebView
.
settings
.
javascriptEnabled
}
implicitHeight
:
Kirigami
.
Units
.
gridUnit
*
2.5
}
Kirigami.AbstractListItem
{
width
:
parent
.
width
Controls.CheckBox
{
text
:
i18n
(
"
Load images
"
)
Layout.fillWidth
:
true
onCheckedChanged
:
{
var
settings
=
currentWebView
.
settings
;
settings
.
autoLoadImages
=
checked
;
// FIXME: save to config
}
Component.onCompleted
:
{
checked
=
currentWebView
.
settings
.
autoLoadImages
;
}
Kirigami.Separator
{
Layout.fillWidth
:
true
}
Controls.SwitchDelegate
{
text
:
i18n
(
"
Load images
"
)
Layout.fillWidth
:
true
onCheckedChanged
:
{
var
settings
=
currentWebView
.
settings
settings
.
autoLoadImages
=
checked
// FIXME: save to config
}
Component.onCompleted
:
{
checked
=
currentWebView
.
settings
.
autoLoadImages
}
implicitHeight
:
Kirigami
.
Units
.
gridUnit
*
2.5
}
InputSheet
{
...
...
@@ -96,24 +95,38 @@ Kirigami.ScrollablePage {
placeholderText
:
BrowserManager
.
searchBaseUrl
onAccepted
:
{
if
(
searchEnginePopup
.
text
!==
""
)
BrowserManager
.
searchBaseUrl
=
UrlUtils
.
urlFromUserInput
(
searchEnginePopup
.
text
)
;
BrowserManager
.
searchBaseUrl
=
UrlUtils
.
urlFromUserInput
(
searchEnginePopup
.
text
)
}
}
Kirigami.BasicListItem
{
Kirigami.Separator
{
Layout.fillWidth
:
true
}
Controls.ItemDelegate
{
text
:
i18n
(
"
Homepage
"
)
Layout.fillWidth
:
true
onClicked
:
{
homePagePopup
.
open
()
}
implicitHeight
:
Kirigami
.
Units
.
gridUnit
*
2.5
}
Kirigami.Separator
{
Layout.fillWidth
:
true
}
Kirigami.BasicListItem
{
Controls.ItemDelegate
{
text
:
i18n
(
"
Search Engine
"
)
Layout.fillWidth
:
true
onClicked
:
{
searchEnginePopup
.
open
()
}
implicitHeight
:
Kirigami
.
Units
.
gridUnit
*
2.5
}
Kirigami.Separator
{
Layout.fillWidth
:
true
}
Item
{
...
...
@@ -121,4 +134,3 @@ Kirigami.ScrollablePage {
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment