Warning, /network/angelfish/src/contents/ui/SettingsNavigationBarPage.qml is written in an unsupported language. File is not indexed.

0001 // SPDX-FileCopyrightText: 2020 Rinigus <rinigus.git@gmail.com>
0002 // SPDX-FileCopyrightText: 2020 Jonah BrĂ¼chert  <jbb@kaidan.im>
0003 //
0004 // SPDX-License-Identifier: GPL-2.0-or-later
0005 
0006 import QtQuick 2.3
0007 import QtQuick.Controls 2.4 as Controls
0008 import QtQuick.Layouts 1.11
0009 
0010 import org.kde.kirigami 2.7 as Kirigami
0011 import org.kde.kirigamiaddons.formcard 1.0 as FormCard
0012 
0013 import org.kde.angelfish 1.0
0014 
0015 Kirigami.ScrollablePage {
0016     title: i18n("Navigation bar")
0017 
0018     leftPadding: 0
0019     rightPadding: 0
0020     topPadding: Kirigami.Units.gridUnit
0021     bottomPadding: Kirigami.Units.gridUnit
0022 
0023     Kirigami.Theme.colorSet: Kirigami.Theme.Window
0024     Kirigami.Theme.inherit: false
0025 
0026     ColumnLayout {
0027         spacing: 0
0028 
0029         FormCard.FormCard {
0030             Layout.fillWidth: true
0031 
0032             Controls.Label {
0033                 text: i18n("Choose the buttons enabled in navigation bar. \
0034 Some of the buttons can be hidden only in portrait \
0035 orientation of the browser and are always shown if  \
0036 the browser is wider than its height.\n\n \
0037 Note that if you disable the menu buttons, you \
0038 will be able to access the menus either by swiping \
0039 from the left or right side or to a side along the bottom \
0040 of the window.")
0041                 Layout.fillWidth: true
0042                 padding: Kirigami.Units.gridUnit
0043                 wrapMode: Text.WordWrap
0044             }
0045 
0046             FormCard.FormDelegateSeparator {}
0047 
0048             FormCard.FormCheckDelegate {
0049                 text: i18n("Main menu in portrait")
0050                 checked: Settings.navBarMainMenu
0051                 onCheckedChanged: Settings.navBarMainMenu = checked
0052             }
0053 
0054             FormCard.FormCheckDelegate {
0055                 text: i18n("Tabs in portrait")
0056                 checked: Settings.navBarTabs
0057                 onCheckedChanged: Settings.navBarTabs = checked
0058             }
0059 
0060             FormCard.FormCheckDelegate {
0061                 text: i18n("Context menu in portrait")
0062                 checked: Settings.navBarContextMenu
0063                 onCheckedChanged: Settings.navBarContextMenu = checked
0064             }
0065 
0066             FormCard.FormCheckDelegate {
0067                 text: i18n("Go back")
0068                 checked: Settings.navBarBack
0069                 onCheckedChanged: Settings.navBarBack = checked
0070             }
0071 
0072             FormCard.FormCheckDelegate {
0073                 text: i18n("Go forward")
0074                 checked: Settings.navBarForward
0075                 onCheckedChanged: Settings.navBarForward = checked
0076             }
0077 
0078             FormCard.FormCheckDelegate {
0079                 text: i18n("Reload/Stop")
0080                 checked: Settings.navBarReload
0081                 onCheckedChanged: Settings.navBarReload = checked
0082             }
0083         }
0084     }
0085 }