|
|
|
@ -2,6 +2,7 @@ import QtQuick 2.12
|
|
|
|
import QtQuick.Controls 2.5
|
|
|
|
import QtQuick.Controls 2.5
|
|
|
|
import QtQuick.Layouts 1.3
|
|
|
|
import QtQuick.Layouts 1.3
|
|
|
|
import Cutefish.Calculator 1.0
|
|
|
|
import Cutefish.Calculator 1.0
|
|
|
|
|
|
|
|
import Qt.labs.platform 1.0
|
|
|
|
import FishUI 1.0 as FishUI
|
|
|
|
import FishUI 1.0 as FishUI
|
|
|
|
|
|
|
|
|
|
|
|
FishUI.Window {
|
|
|
|
FishUI.Window {
|
|
|
|
@ -16,6 +17,27 @@ FishUI.Window {
|
|
|
|
: Qt.rgba(240 / 255, 238 / 255, 241 / 255, 1.0)
|
|
|
|
: Qt.rgba(240 / 255, 238 / 255, 241 / 255, 1.0)
|
|
|
|
background.opacity: rootWindow.compositing ? 0.95 : 1.0
|
|
|
|
background.opacity: rootWindow.compositing ? 0.95 : 1.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MenuBar {
|
|
|
|
|
|
|
|
id: menuBar
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Menu {
|
|
|
|
|
|
|
|
id: helpMenu
|
|
|
|
|
|
|
|
title: qsTr("&Help")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MenuItem {
|
|
|
|
|
|
|
|
text: qsTr("About")
|
|
|
|
|
|
|
|
onTriggered: aboutDialog.show()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FishUI.AboutDialog {
|
|
|
|
|
|
|
|
id: aboutDialog
|
|
|
|
|
|
|
|
name: rootWindow.title
|
|
|
|
|
|
|
|
description: qsTr("A simple calculator")
|
|
|
|
|
|
|
|
iconSource: "image://icontheme/cutefish-calculator"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
FishUI.WindowBlur {
|
|
|
|
FishUI.WindowBlur {
|
|
|
|
view: rootWindow
|
|
|
|
view: rootWindow
|
|
|
|
geometry: Qt.rect(rootWindow.x, rootWindow.y, rootWindow.width, rootWindow.height)
|
|
|
|
geometry: Qt.rect(rootWindow.x, rootWindow.y, rootWindow.width, rootWindow.height)
|
|
|
|
@ -49,7 +71,7 @@ FishUI.Window {
|
|
|
|
z: -1
|
|
|
|
z: -1
|
|
|
|
anchors.fill: parent
|
|
|
|
anchors.fill: parent
|
|
|
|
color: FishUI.Theme.secondBackgroundColor
|
|
|
|
color: FishUI.Theme.secondBackgroundColor
|
|
|
|
opacity: 0.8
|
|
|
|
opacity: 0.9
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
onPressed: zone.appendToTextField(text)
|
|
|
|
onPressed: zone.appendToTextField(text)
|
|
|
|
|