mirror of
https://github.com/Swordfish90/cool-retro-term.git
synced 2026-02-08 00:32:27 +00:00
Fix windows styling.
This commit is contained in:
@@ -37,9 +37,6 @@ int main(int argc, char *argv[])
|
|||||||
// Some environmental variable are necessary on certain platforms.
|
// Some environmental variable are necessary on certain platforms.
|
||||||
// Disable Connections slot warnings
|
// Disable Connections slot warnings
|
||||||
QLoggingCategory::setFilterRules("qt.qml.connections.warning=false");
|
QLoggingCategory::setFilterRules("qt.qml.connections.warning=false");
|
||||||
|
|
||||||
// TODO FILIPPO... This should not be hardcoded but handled as a fallback of sort!
|
|
||||||
QQuickStyle::setStyle("Material");
|
|
||||||
QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::Round);
|
QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::Round);
|
||||||
|
|
||||||
// #if defined (Q_OS_LINUX)
|
// #if defined (Q_OS_LINUX)
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ import QtQuick.Controls 2.2
|
|||||||
import QtQuick.Layouts 1.1
|
import QtQuick.Layouts 1.1
|
||||||
import QtQuick.Window 2.0
|
import QtQuick.Window 2.0
|
||||||
|
|
||||||
Window {
|
ApplicationWindow {
|
||||||
id: dialogwindow
|
id: dialogwindow
|
||||||
title: qsTr("About")
|
title: qsTr("About")
|
||||||
width: 600
|
width: 600
|
||||||
@@ -37,6 +37,7 @@ Window {
|
|||||||
Text {
|
Text {
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
text: "cool-retro-term"
|
text: "cool-retro-term"
|
||||||
|
color: palette.text
|
||||||
font {
|
font {
|
||||||
bold: true
|
bold: true
|
||||||
pointSize: 18
|
pointSize: 18
|
||||||
@@ -100,6 +101,7 @@ Window {
|
|||||||
Text {
|
Text {
|
||||||
Layout.alignment: Qt.AlignCenter
|
Layout.alignment: Qt.AlignCenter
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
|
color: palette.text
|
||||||
text: appSettings.version + "\n" + qsTr(
|
text: appSettings.version + "\n" + qsTr(
|
||||||
"Author: ") + "Filippo Scognamiglio\n" + qsTr(
|
"Author: ") + "Filippo Scognamiglio\n" + qsTr(
|
||||||
"Email: ") + "flscogna@gmail.com\n" + qsTr(
|
"Email: ") + "flscogna@gmail.com\n" + qsTr(
|
||||||
@@ -115,7 +117,8 @@ Window {
|
|||||||
TextArea {
|
TextArea {
|
||||||
readOnly: true
|
readOnly: true
|
||||||
wrapMode: TextEdit.Wrap
|
wrapMode: TextEdit.Wrap
|
||||||
text: "Copyright (c) 2013-2021 Filippo Scognamiglio <flscogna@gmail.com>\n\n"
|
color: palette.text
|
||||||
|
text: "Copyright (c) 2013-2025 Filippo Scognamiglio <flscogna@gmail.com>\n\n"
|
||||||
+ "https://github.com/Swordfish90/cool-retro-term\n\n" +
|
+ "https://github.com/Swordfish90/cool-retro-term\n\n" +
|
||||||
"cool-retro-term is free software: you can redistribute it and/or modify "
|
"cool-retro-term is free software: you can redistribute it and/or modify "
|
||||||
+ "it under the terms of the GNU General Public License as published by "
|
+ "it under the terms of the GNU General Public License as published by "
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ import QtQuick.Window 2.1
|
|||||||
import QtQuick.Layouts 1.3
|
import QtQuick.Layouts 1.3
|
||||||
import QtQuick.Dialogs
|
import QtQuick.Dialogs
|
||||||
|
|
||||||
Window {
|
ApplicationWindow {
|
||||||
id: settings_window
|
id: settings_window
|
||||||
title: qsTr("Settings")
|
title: qsTr("Settings")
|
||||||
width: 640
|
width: 640
|
||||||
|
|||||||
Reference in New Issue
Block a user