No known key found for this signature in database
GPG Key ID: 425ACD2D4830EBC6
72 changed files with 376 additions and 622 deletions
-
2CMakeModules/EdenModule.cmake
-
5src/CMakeLists.txt
-
2src/Eden/Config/CMakeLists.txt
-
53src/Eden/Config/GlobalConfigureDialog.qml
-
5src/Eden/Config/SectionHeader.qml
-
5src/Eden/Config/TestSetting.qml
-
82src/Eden/Config/fields/BaseField.qml
-
2src/Eden/Config/fields/ConfigCheckbox.qml
-
15src/Eden/Config/fields/ConfigComboBox.qml
-
5src/Eden/Config/fields/ConfigHexEdit.qml
-
5src/Eden/Config/fields/ConfigIntLine.qml
-
7src/Eden/Config/fields/ConfigIntSlider.qml
-
5src/Eden/Config/fields/ConfigIntSpin.qml
-
5src/Eden/Config/fields/ConfigStringEdit.qml
-
5src/Eden/Config/fields/ConfigTimeEdit.qml
-
5src/Eden/Config/fields/FieldLabel.qml
-
18src/Eden/Config/pages/PageScrollView.qml
-
42src/Eden/Config/pages/SettingsList.qml
-
4src/Eden/Config/pages/audio/AudioGeneralPage.qml
-
4src/Eden/Config/pages/cpu/CpuGeneralPage.qml
-
4src/Eden/Config/pages/debug/DebugAdvancedPage.qml
-
4src/Eden/Config/pages/debug/DebugCpuPage.qml
-
4src/Eden/Config/pages/debug/DebugGeneralPage.qml
-
4src/Eden/Config/pages/debug/DebugGraphicsPage.qml
-
5src/Eden/Config/pages/general/UiGameListPage.qml
-
18src/Eden/Config/pages/general/UiGeneralPage.qml
-
13src/Eden/Config/pages/global/GlobalTab.qml
-
3src/Eden/Config/pages/global/GlobalTabSwipeView.qml
-
4src/Eden/Config/pages/graphics/RendererAdvancedPage.qml
-
4src/Eden/Config/pages/graphics/RendererExtensionsPage.qml
-
4src/Eden/Config/pages/graphics/RendererPage.qml
-
4src/Eden/Config/pages/system/AppletsPage.qml
-
4src/Eden/Config/pages/system/FileSystemPage.qml
-
4src/Eden/Config/pages/system/SystemCorePage.qml
-
4src/Eden/Config/pages/system/SystemGeneralPage.qml
-
16src/Eden/Constants/Constants.qml
-
5src/Eden/Interface/QMLConfig.h
-
2src/Eden/Interface/SettingsInterface.cpp
-
2src/Eden/Interface/SettingsInterface.h
-
79src/Eden/Items/AnimatedDialog.qml
-
59src/Eden/Items/BetterMenu.qml
-
33src/Eden/Items/BetterMenuBar.qml
-
11src/Eden/Items/CMakeLists.txt
-
7src/Eden/Items/IconButton.qml
-
40src/Eden/Items/SettingsTabButton.qml
-
5src/Eden/Items/StatusBarButton.qml
-
46src/Eden/Items/VerticalTabBar.qml
-
68src/Eden/Items/fields/BetterSpinBox.qml
-
38src/Eden/Items/fields/BetterTextField.qml
-
20src/Eden/Items/fields/FieldFooter.qml
-
2src/Eden/Main/GameCarousel.qml
-
11src/Eden/Main/GameGrid.qml
-
4src/Eden/Main/GameGridCard.qml
-
4src/Eden/Main/GameList.qml
-
25src/Eden/Main/Main.qml
-
2src/Eden/Main/MarqueeText.qml
-
6src/Eden/Main/StatusBar.qml
-
2src/Eden/Models/GameIconProvider.cpp
-
3src/Eden/Models/GameListModel.cpp
-
2src/Eden/Models/GameListModel.h
-
6src/Eden/Models/GameListWorker.cpp
-
2src/Eden/Models/GameListWorker.h
-
2src/Eden/Native/CMakeLists.txt
-
16src/Eden/Native/icons/graphics.svg
-
29src/Eden/Native/main.cpp
-
6src/common/settings_enums.h
-
50src/qt_common/config/shared_translation.cpp
-
8src/qt_common/config/uisettings.h
-
6src/qt_common/externals/CMakeLists.txt
-
11src/qt_common/externals/cpmfile.json
-
10src/qt_common/qt_common.cpp
-
1src/qt_common/qt_common.h
@ -1,8 +1,7 @@ |
|||
import QtQuick |
|||
|
|||
import Eden.Constants |
|||
import Carboxyl.Base |
|||
|
|||
Text { |
|||
color: Constants.text |
|||
Label { |
|||
font.pixelSize: 16 |
|||
} |
|||
@ -0,0 +1,18 @@ |
|||
import QtQuick |
|||
import QtQuick.Controls |
|||
import QtQuick.Layouts |
|||
|
|||
ScrollView { |
|||
id: scroll |
|||
|
|||
WheelHandler { |
|||
target: scroll |
|||
onWheel: event => { |
|||
const sensitivity = 1 / 1500 |
|||
scroll.ScrollBar.vertical.position -= event.angleDelta.y * sensitivity |
|||
scroll.ScrollBar.vertical.position = Math.max( |
|||
Math.min(scroll.ScrollBar.vertical.position, |
|||
1.0 - scroll.ScrollBar.vertical.size), 0.0) |
|||
} |
|||
} |
|||
} |
|||
@ -1,23 +1,35 @@ |
|||
import QtQuick |
|||
import QtQuick.Controls.Material |
|||
import QtQuick.Controls |
|||
import QtQuick.Layouts |
|||
|
|||
import Eden.Interface |
|||
import Eden.Config |
|||
|
|||
ScrollView { |
|||
PageScrollView { |
|||
id: scroll |
|||
ColumnLayout { |
|||
width: scroll.width - scroll.effectiveScrollBarWidth |
|||
|
|||
SettingsList { |
|||
category: SettingsCategories.UiGeneral |
|||
// onContentHeightChanged: console.log(height, parent.height) |
|||
} |
|||
|
|||
SectionHeader { |
|||
text: qsTr("Linux") |
|||
visible: Qt.platform.os === "linux" |
|||
} |
|||
|
|||
SettingsList { |
|||
category: SettingsCategories.Linux |
|||
visible: Qt.platform.os === "linux" |
|||
} |
|||
|
|||
SectionHeader { |
|||
text: qsTr("Theming") |
|||
} |
|||
|
|||
// SettingsList { |
|||
// category: SettingsCategories.UiLayout |
|||
// } |
|||
} |
|||
} |
|||
@ -1,79 +0,0 @@ |
|||
import QtQuick |
|||
import QtQuick.Controls.Material |
|||
|
|||
import Eden.Constants |
|||
|
|||
Dialog { |
|||
id: dia |
|||
|
|||
property int preferredWidth: Overlay.overlay.width / 2 |
|||
property int preferredHeight: Overlay.overlay.height / 1.25 |
|||
|
|||
width: Math.min(preferredWidth, Overlay.overlay.width) |
|||
height: Math.min(preferredHeight, Overlay.overlay.height) |
|||
|
|||
property int radius: 12 |
|||
property bool colorful: false |
|||
|
|||
anchors.centerIn: Overlay.overlay |
|||
|
|||
enter: Transition { |
|||
NumberAnimation { |
|||
property: "opacity" |
|||
duration: 200 |
|||
|
|||
from: 0.0 |
|||
to: 1.0 |
|||
} |
|||
} |
|||
|
|||
exit: Transition { |
|||
NumberAnimation { |
|||
property: "opacity" |
|||
duration: 200 |
|||
|
|||
from: 1.0 |
|||
to: 0.0 |
|||
} |
|||
} |
|||
|
|||
header: Rectangle { |
|||
topLeftRadius: dia.radius |
|||
topRightRadius: dia.radius |
|||
|
|||
color: colorful ? Qt.alpha(Constants.accent, 0.5) : Constants.dialog |
|||
|
|||
height: 50 |
|||
|
|||
Text { |
|||
anchors.fill: parent |
|||
font.pixelSize: Math.round(25) |
|||
|
|||
text: title |
|||
color: Constants.text |
|||
|
|||
font.bold: true |
|||
|
|||
verticalAlignment: Text.AlignVCenter |
|||
horizontalAlignment: Text.AlignHCenter |
|||
} |
|||
} |
|||
|
|||
background: Rectangle { |
|||
radius: dia.radius |
|||
|
|||
color: Constants.dialog |
|||
} |
|||
|
|||
footer: DialogButtonBox { |
|||
id: control |
|||
|
|||
background: Item {} |
|||
|
|||
delegate: Button { |
|||
id: btn |
|||
} |
|||
} |
|||
Overlay.modal: Item {} |
|||
Overlay.modeless: Item {} |
|||
} |
|||
@ -1,59 +0,0 @@ |
|||
import QtQuick |
|||
import QtQuick.Controls |
|||
|
|||
import Eden.Constants |
|||
|
|||
Menu { |
|||
background: Rectangle { |
|||
implicitWidth: 200 |
|||
implicitHeight: 40 |
|||
color: Constants.button |
|||
|
|||
radius: 10 |
|||
} |
|||
|
|||
function fixAmpersands(originalText) { |
|||
var regex = /&(\w)/g |
|||
return originalText.replace(regex, "<u>$1</u>") |
|||
} |
|||
|
|||
delegate: MenuItem { |
|||
id: control |
|||
|
|||
font.pixelSize: 14 |
|||
|
|||
background: Rectangle { |
|||
color: control.down || control.hovered |
|||
|| control.highlighted ? Constants.buttonHighlighted : Constants.button |
|||
} |
|||
|
|||
contentItem: Item { |
|||
Text { |
|||
anchors { |
|||
left: parent.left |
|||
leftMargin: 5 + (control.checkable ? control.indicator.width : 0) |
|||
verticalCenter: parent.verticalCenter |
|||
} |
|||
|
|||
text: fixAmpersands(control.text) |
|||
color: Constants.text |
|||
font: control.font |
|||
} |
|||
|
|||
Text { |
|||
anchors { |
|||
right: parent.right |
|||
rightMargin: 5 |
|||
verticalCenter: parent.verticalCenter |
|||
} |
|||
|
|||
Component.onCompleted: if (control.action != null |
|||
&& typeof control.action.shortcut !== 'undefined') |
|||
text = control.action.shortcut |
|||
|
|||
color: Constants.text |
|||
font: control.font |
|||
} |
|||
} |
|||
} |
|||
} |
|||
@ -1,33 +0,0 @@ |
|||
import QtQuick |
|||
import QtQuick.Controls |
|||
|
|||
import Eden.Constants |
|||
|
|||
MenuBar { |
|||
background: Rectangle { |
|||
implicitHeight: 30 |
|||
color: Constants.button |
|||
} |
|||
|
|||
function fixAmpersands(originalText) { |
|||
var regex = /&(\w)/g |
|||
return originalText.replace(regex, "<u>$1</u>") |
|||
} |
|||
|
|||
delegate: MenuBarItem { |
|||
id: control |
|||
|
|||
font.pixelSize: 16 |
|||
|
|||
background: Rectangle { |
|||
color: control.down || control.hovered |
|||
|| control.highlighted ? Constants.buttonHighlighted : Constants.button |
|||
} |
|||
|
|||
contentItem: Text { |
|||
text: fixAmpersands(control.text) |
|||
color: Constants.text |
|||
font: control.font |
|||
} |
|||
} |
|||
} |
|||
@ -1,40 +0,0 @@ |
|||
import QtQuick |
|||
import QtQuick.Controls.Material |
|||
import QtQuick.Layouts |
|||
|
|||
import Eden.Constants |
|||
|
|||
TabButton { |
|||
required property string label |
|||
|
|||
id: button |
|||
|
|||
implicitHeight: 100 |
|||
width: 95 |
|||
|
|||
contentItem: ColumnLayout { |
|||
IconButton { |
|||
label: button.label |
|||
|
|||
Layout.maximumHeight: 60 |
|||
Layout.maximumWidth: 65 |
|||
|
|||
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter |
|||
|
|||
onClicked: button.clicked() |
|||
} |
|||
|
|||
Text { |
|||
font.pixelSize: 16 |
|||
text: label |
|||
|
|||
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter |
|||
|
|||
color: Constants.text |
|||
} |
|||
} |
|||
|
|||
// background: Rectangle { |
|||
// color: button.Material.backgroundColor |
|||
// } |
|||
} |
|||
@ -1,46 +0,0 @@ |
|||
import QtQuick |
|||
import QtQuick.Controls.Material |
|||
|
|||
import Eden.Constants |
|||
|
|||
TabBar { |
|||
clip: true |
|||
id: control |
|||
|
|||
contentItem: ListView { |
|||
model: control.contentModel |
|||
currentIndex: control.currentIndex |
|||
|
|||
spacing: control.spacing |
|||
orientation: ListView.Vertical |
|||
boundsBehavior: Flickable.StopAtBounds |
|||
flickableDirection: Flickable.AutoFlickIfNeeded |
|||
snapMode: ListView.SnapToItem |
|||
|
|||
highlightMoveDuration: 300 |
|||
highlightRangeMode: ListView.ApplyRange |
|||
preferredHighlightBegin: 40 |
|||
preferredHighlightEnd: height - 40 |
|||
|
|||
highlight: Item { |
|||
z: 2 |
|||
Rectangle { |
|||
radius: 5 |
|||
anchors { |
|||
right: parent.right |
|||
verticalCenter: parent.verticalCenter |
|||
} |
|||
|
|||
height: parent.height / 2 |
|||
width: 5 |
|||
|
|||
color: Constants.accent |
|||
} |
|||
} |
|||
} |
|||
|
|||
background: Rectangle { |
|||
color: control.Material.backgroundColor |
|||
radius: 8 |
|||
} |
|||
} |
|||
@ -1,68 +0,0 @@ |
|||
import QtQuick |
|||
import QtQuick.Controls.Material |
|||
import QtQuick.Controls.impl |
|||
|
|||
import Eden.Constants |
|||
|
|||
SpinBox { |
|||
id: control |
|||
property string label: "" |
|||
|
|||
from: -0x7FFFFFFF |
|||
to: 0x7FFFFFFF |
|||
|
|||
contentItem: BetterTextField { |
|||
text: parent.textFromValue(parent.value, parent.locale) |
|||
|
|||
placeholderText: parent.label |
|||
|
|||
width: parent.width |
|||
|
|||
font: parent.font |
|||
|
|||
horizontalAlignment: Qt.AlignHCenter |
|||
verticalAlignment: Qt.AlignVCenter |
|||
|
|||
inputMethodHints: Qt.ImhFormattedNumbersOnly |
|||
|
|||
onEditingFinished: { |
|||
control.value = parseFloat(text.replace(/,/g, "")) |
|||
valueModified() |
|||
} |
|||
} |
|||
|
|||
up.indicator: IconLabel { |
|||
icon { |
|||
source: "qrc:/icons/forward.svg" |
|||
} |
|||
|
|||
x: control.mirrored ? 0 : control.width - width |
|||
|
|||
implicitWidth: 40 |
|||
implicitHeight: 40 |
|||
|
|||
height: parent.height |
|||
width: height / 2 |
|||
} |
|||
|
|||
down.indicator: IconLabel { |
|||
icon { |
|||
source: "qrc:/icons/back.svg" |
|||
} |
|||
|
|||
x: control.mirrored ? control.width - width : 0 |
|||
|
|||
implicitWidth: 40 |
|||
implicitHeight: 40 |
|||
|
|||
height: parent.height |
|||
width: height / 2 |
|||
} |
|||
background: Item {} |
|||
|
|||
FieldFooter { |
|||
anchors { |
|||
bottom: contentItem.bottom |
|||
} |
|||
} |
|||
} |
|||
@ -1,38 +0,0 @@ |
|||
import QtQuick |
|||
import QtQuick.Controls.Material |
|||
|
|||
import Eden.Constants |
|||
import Eden.Items |
|||
|
|||
TextField { |
|||
property string suffix: "" |
|||
|
|||
placeholderTextColor: enabled && activeFocus ? Constants.accent : Qt.darker( |
|||
Constants.text, 1.3) |
|||
|
|||
color: enabled ? Constants.text : Qt.darker(Constants.text, 1.5) |
|||
|
|||
background: Rectangle { |
|||
color: "transparent" |
|||
} |
|||
|
|||
FieldFooter {} |
|||
|
|||
horizontalAlignment: "AlignHCenter" |
|||
|
|||
Text { |
|||
id: txt |
|||
text: suffix |
|||
|
|||
font.pixelSize: 14 |
|||
|
|||
anchors { |
|||
verticalCenter: parent.verticalCenter |
|||
right: parent.right |
|||
|
|||
rightMargin: 5 |
|||
} |
|||
|
|||
color: "gray" |
|||
} |
|||
} |
|||
@ -1,20 +0,0 @@ |
|||
import QtQuick |
|||
import QtQuick.Controls.Material |
|||
import Eden.Constants |
|||
|
|||
Rectangle { |
|||
height: 2 |
|||
color: enabled ? Constants.text : Qt.darker(Constants.text, 1.5) |
|||
width: parent.width |
|||
|
|||
anchors { |
|||
bottom: parent.bottom |
|||
left: parent.left |
|||
} |
|||
|
|||
Behavior on color { |
|||
ColorAnimation { |
|||
duration: 250 |
|||
} |
|||
} |
|||
} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue