mirror of https://github.com/cutefishos/terminal
Merge branch 'cutefishos:main' into main
commit
7e296fbf48
@ -0,0 +1,102 @@
|
|||||||
|
import QtQuick 2.12
|
||||||
|
import QtQuick.Layouts 1.12
|
||||||
|
import QtQuick.Window 2.12
|
||||||
|
import QtQuick.Controls 2.12
|
||||||
|
import FishUI 1.0 as FishUI
|
||||||
|
|
||||||
|
FishUI.Window {
|
||||||
|
id: control
|
||||||
|
|
||||||
|
width: 400
|
||||||
|
height: 400
|
||||||
|
|
||||||
|
maximumHeight: 400
|
||||||
|
maximumWidth: 400
|
||||||
|
minimumWidth: 400
|
||||||
|
minimumHeight: 400
|
||||||
|
|
||||||
|
visible: false
|
||||||
|
|
||||||
|
ColumnLayout {
|
||||||
|
id: _mainLayout
|
||||||
|
anchors.fill: parent
|
||||||
|
anchors.leftMargin: FishUI.Units.largeSpacing
|
||||||
|
anchors.rightMargin: FishUI.Units.largeSpacing
|
||||||
|
spacing: FishUI.Units.largeSpacing
|
||||||
|
|
||||||
|
Item {
|
||||||
|
Layout.fillWidth: true
|
||||||
|
Layout.preferredHeight: 45
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
anchors.fill: parent
|
||||||
|
color: FishUI.Theme.secondBackgroundColor
|
||||||
|
radius: FishUI.Theme.smallRadius
|
||||||
|
}
|
||||||
|
|
||||||
|
RowLayout {
|
||||||
|
anchors.fill: parent
|
||||||
|
anchors.leftMargin: FishUI.Units.largeSpacing
|
||||||
|
anchors.rightMargin: FishUI.Units.largeSpacing
|
||||||
|
|
||||||
|
Label {
|
||||||
|
text: qsTr("Transparency")
|
||||||
|
}
|
||||||
|
|
||||||
|
Item {
|
||||||
|
width: FishUI.Units.largeSpacing
|
||||||
|
}
|
||||||
|
|
||||||
|
Slider {
|
||||||
|
id: transparencySlider
|
||||||
|
Layout.fillHeight: true
|
||||||
|
Layout.fillWidth: true
|
||||||
|
from: 0.1
|
||||||
|
to: 1.0
|
||||||
|
stepSize: 0.05
|
||||||
|
|
||||||
|
Component.onCompleted: {
|
||||||
|
transparencySlider.value = settings.opacity
|
||||||
|
}
|
||||||
|
|
||||||
|
onValueChanged: settings.opacity = transparencySlider.value
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Item {
|
||||||
|
Layout.fillWidth: true
|
||||||
|
Layout.preferredHeight: 45
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
anchors.fill: parent
|
||||||
|
color: FishUI.Theme.secondBackgroundColor
|
||||||
|
radius: FishUI.Theme.smallRadius
|
||||||
|
}
|
||||||
|
|
||||||
|
RowLayout {
|
||||||
|
anchors.fill: parent
|
||||||
|
anchors.leftMargin: FishUI.Units.largeSpacing
|
||||||
|
anchors.rightMargin: FishUI.Units.smallSpacing
|
||||||
|
|
||||||
|
Label {
|
||||||
|
text: qsTr("Window Blur")
|
||||||
|
}
|
||||||
|
|
||||||
|
Item {
|
||||||
|
Layout.fillWidth: true
|
||||||
|
}
|
||||||
|
|
||||||
|
Switch {
|
||||||
|
Layout.fillHeight: true
|
||||||
|
checked: settings.blur
|
||||||
|
onCheckedChanged: settings.blur = checked
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Item {
|
||||||
|
Layout.fillHeight: true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,64 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE TS>
|
||||||
|
<TS version="2.1" language="ts_ZA">
|
||||||
|
<context>
|
||||||
|
<name>ExitPromptDialog</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/qml/ExitPromptDialog.qml" line="49"/>
|
||||||
|
<source>Process is running, are you sure you want to quit?</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/qml/ExitPromptDialog.qml" line="57"/>
|
||||||
|
<source>Cancel</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/qml/ExitPromptDialog.qml" line="63"/>
|
||||||
|
<source>OK</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>SettingsDialog</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/qml/SettingsDialog.qml" line="43"/>
|
||||||
|
<source>Transparency</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/qml/SettingsDialog.qml" line="83"/>
|
||||||
|
<source>Window Blur</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>Terminal</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/qml/Terminal.qml" line="177"/>
|
||||||
|
<source>Copy</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/qml/Terminal.qml" line="183"/>
|
||||||
|
<location filename="../src/qml/Terminal.qml" line="197"/>
|
||||||
|
<source>Paste</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/qml/Terminal.qml" line="203"/>
|
||||||
|
<source>Select All</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/qml/Terminal.qml" line="208"/>
|
||||||
|
<source>Open File Manager</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/qml/Terminal.qml" line="213"/>
|
||||||
|
<source>Settings</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
</TS>
|
Loading…
Reference in New Issue