mirror of
https://github.com/Swordfish90/cool-retro-term.git
synced 2025-01-18 12:15:27 +00:00
Improve settings window.
This commit is contained in:
parent
28977313da
commit
aa270067f6
@ -41,11 +41,11 @@ int main(int argc, char *argv[])
|
|||||||
#if defined(Q_OS_MAC)
|
#if defined(Q_OS_MAC)
|
||||||
// This allows UTF-8 characters usage in OSX.
|
// This allows UTF-8 characters usage in OSX.
|
||||||
setenv("LC_CTYPE", "UTF-8", 1);
|
setenv("LC_CTYPE", "UTF-8", 1);
|
||||||
|
|
||||||
// Force fusion style on macOS
|
|
||||||
QQuickStyle::setStyle("Fusion");
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Force fusion style on every platform
|
||||||
|
QQuickStyle::setStyle("Fusion");
|
||||||
|
|
||||||
if (argc>1 && (!strcmp(argv[1],"-h") || !strcmp(argv[1],"--help"))) {
|
if (argc>1 && (!strcmp(argv[1],"-h") || !strcmp(argv[1],"--help"))) {
|
||||||
QTextStream cout(stdout, QIODevice::WriteOnly);
|
QTextStream cout(stdout, QIODevice::WriteOnly);
|
||||||
cout << "Usage: " << argv[0] << " [--default-settings] [--workdir <dir>] [--program <prog>] [-p|--profile <prof>] [--fullscreen] [-h|--help]" << endl;
|
cout << "Usage: " << argv[0] << " [--default-settings] [--workdir <dir>] [--program <prog>] [-p|--profile <prof>] [--fullscreen] [-h|--help]" << endl;
|
||||||
|
@ -27,42 +27,49 @@ import QtQuick.Dialogs 1.1
|
|||||||
Window {
|
Window {
|
||||||
id: settings_window
|
id: settings_window
|
||||||
title: qsTr("Settings")
|
title: qsTr("Settings")
|
||||||
width: 800
|
width: 600
|
||||||
height: 600
|
height: 480
|
||||||
|
|
||||||
property int tabmargins: 15
|
property int tabmargins: 15
|
||||||
|
|
||||||
TabBar {
|
Item {
|
||||||
id: bar
|
anchors { fill: parent; margins: tabmargins }
|
||||||
anchors { left: parent.left; right: parent.right; top: parent.top }
|
|
||||||
TabButton {
|
|
||||||
text: qsTr("General")
|
|
||||||
}
|
|
||||||
TabButton {
|
|
||||||
text: qsTr("Terminal")
|
|
||||||
}
|
|
||||||
TabButton {
|
|
||||||
text: qsTr("Effects")
|
|
||||||
}
|
|
||||||
TabButton {
|
|
||||||
text: qsTr("Advanced")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
StackLayout {
|
TabBar {
|
||||||
anchors {
|
id: bar
|
||||||
top: bar.bottom
|
anchors { left: parent.left; right: parent.right; top: parent.top; }
|
||||||
left: parent.left
|
TabButton {
|
||||||
right: parent.right
|
text: qsTr("General")
|
||||||
bottom: parent.bottom
|
}
|
||||||
margins: tabmargins
|
TabButton {
|
||||||
|
text: qsTr("Terminal")
|
||||||
|
}
|
||||||
|
TabButton {
|
||||||
|
text: qsTr("Effects")
|
||||||
|
}
|
||||||
|
TabButton {
|
||||||
|
text: qsTr("Advanced")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
currentIndex: bar.currentIndex
|
Frame {
|
||||||
|
anchors {
|
||||||
|
top: bar.bottom
|
||||||
|
left: parent.left
|
||||||
|
right: parent.right
|
||||||
|
bottom: parent.bottom
|
||||||
|
}
|
||||||
|
|
||||||
SettingsGeneralTab { }
|
StackLayout {
|
||||||
SettingsTerminalTab { }
|
anchors.fill: parent
|
||||||
SettingsEffectsTab { }
|
|
||||||
SettingsAdvancedTab { }
|
currentIndex: bar.currentIndex
|
||||||
|
|
||||||
|
SettingsGeneralTab { }
|
||||||
|
SettingsTerminalTab { }
|
||||||
|
SettingsEffectsTab { }
|
||||||
|
SettingsAdvancedTab { }
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 997bdaa832609afc480e1153d458eff9692705e2
|
Subproject commit e9ea68473416f7de6ec927ac72d144a0f464c490
|
Loading…
x
Reference in New Issue
Block a user