removed old config

This commit is contained in:
Sohrab Behdani 2024-03-26 13:49:38 +03:30
parent 1e19bf18dc
commit 591cb27068
46 changed files with 59 additions and 2899 deletions

2
README.md Normal file
View file

@ -0,0 +1,2 @@
# Parch Linux Calamares branding and config

View file

@ -1,43 +0,0 @@
---
componentName: ParchLinux
welcomeStyleCalamares: false
welcomeExpandingLogo: true
windowExpanding: noexpand
windowSize: 1050px,700px
windowPlacement: center
sidebar: widget
navigation: widget
strings:
productName: ParchLinux
shortProductName: Parch
version: Rolling
shortVersion: Rolling
versionedName: Parch Linux Rolling
shortVersionedName: ParchLinux
images:
productIcon: "logo.png"
productLogo: "squid.png"
productWelcome: "idioma.png"
style:
sidebarBackground: "#FFFFFF"
sidebarText: "#292F34"
sidebarTextSelect: "#ffffff"
sidebarTextHighlight: "#2093d1"
slideshow: "show.qml"
slideshowAPI: 2
uploadServer :
type : "fiche"
url : "http://termbin.com:9999"

View file

@ -1,53 +0,0 @@
import QtQuick 2.0;
import calamares.slideshow 1.0;
import io.calamares.ui 1.0 // Calamares internals: Branding
Presentation
{
id: presentation
Timer {
interval: 5000
running: presentation.activatedInCalamares
repeat: true
onTriggered: presentation.goToNextSlide()
}
function onActivate() { }
function onLeave() { }
Rectangle {
id: mybackground
anchors.fill: parent
color: Branding.styleString(Branding.SidebarBackground)
z: -1
}
ImageSlide {
src: "slide01.png"
}
ImageSlide {
src: "slide02.png"
}
ImageSlide {
src: "slide03.png"
}
ImageSlide {
src: "slide04.png"
}
ImageSlide {
src: "slide05.png"
}
ImageSlide {
src: "slide06.png"
}
}

View file

@ -1,59 +0,0 @@
/*
* MIT License
*
* Copyright (c) 2020 Pierre-Yves Siret
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
import QtQuick 2.15
import QtQml 2.15
Behavior {
id: root
property QtObject fadeTarget: targetProperty.object
property string fadeProperty: "opacity"
property int fadeDuration: 150
property var fadeValue: 0
property string easingType: "Quad"
property alias exitAnimation: exitAnimation
property alias enterAnimation: enterAnimation
SequentialAnimation {
NumberAnimation {
id: exitAnimation
target: root.fadeTarget
property: root.fadeProperty
duration: root.fadeDuration
to: root.fadeValue
easing.type: root.easingType === "Linear" ? Easing.Linear : Easing["In"+root.easingType]
}
PropertyAction { }
NumberAnimation {
id: enterAnimation
target: root.fadeTarget
property: root.fadeProperty
duration: root.fadeDuration
to: target[property]
easing.type: root.easingType === "Linear" ? Easing.Linear : Easing["Out"+root.easingType]
}
}
}

View file

@ -1,45 +0,0 @@
import QtQuick 2.10
import QtQuick.Controls 2.10
import org.kde.kirigami 2.7 as Kirigami
Item
{
id: control
default property alias content: _content.data
implicitHeight: _content.implicitHeight + (Kirigami.Units.largeSpacing * 2.5)
property alias title : _label1.text
property alias subtitle :_label2.text
Rectangle
{
anchors.fill: parent
color: Qt.lighter(control.Kirigami.Theme.backgroundColor)
opacity: 0.7
}
Column
{
id: _content
anchors.fill: parent
anchors.margins: Kirigami.Units.largeSpacing
spacing: Kirigami.Units.smallSpacing
Label
{
id: _label1
width: parent.width
wrapMode: Text.WordWrap
}
Label
{
id: _label2
visible: text.length
width: parent.width
font.weight: Font.Thin
font.pointSize: 8
wrapMode: Text.WordWrap
}
}
}

View file

@ -1,65 +0,0 @@
import io.calamares.ui 1.0
import QtQuick 2.10
import QtQuick.Controls 2.10
import QtQuick.Layouts 1.3
import org.kde.kirigami 2.7 as Kirigami
ItemDelegate
{
id: control
property alias label1 : _label1
property alias label2 : _label2
hoverEnabled: true
property bool isCurrentItem: ListView.isCurrentItem
background: Rectangle
{
color: isCurrentItem || hovered ? Kirigami.Theme.highlightColor : Qt.lighter(Kirigami.Theme.backgroundColor)
opacity: isCurrentItem || hovered ? 1 : 0.4
}
implicitWidth: ListView.view.width
implicitHeight: Math.max(48, _layout.implicitHeight + Kirigami.Units.largeSpacing *2)
contentItem: RowLayout
{
id: _layout
anchors.fill: parent
anchors.margins: Kirigami.Units.largeSpacing
Label
{
id: _label1
Layout.fillHeight: true
Layout.fillWidth: true
horizontalAlignment: Qt.AlignLeft
color: isCurrentItem ? Kirigami.Theme.highlightedTextColor : Kirigami.Theme.textColor
}
Label
{
id: _label2
visible: text.length
Layout.fillHeight: true
Layout.maximumWidth: parent.width * 0.4
horizontalAlignment: Qt.AlignRight
color: isCurrentItem ? Kirigami.Theme.highlightedTextColor : Kirigami.Theme.textColor
opacity: isCurrentItem ? 1 : 0.7
font.weight: Font.Light
wrapMode: Text.Wrap
}
Kirigami.Icon
{
source: "emblem-default"
Layout.preferredWidth: 22
Layout.preferredHeight: 22
color: Kirigami.Theme.highlightedTextColor
visible: isCurrentItem
}
}
}

View file

@ -1,53 +0,0 @@
import QtQuick 2.13
import QtQuick.Controls 2.13
import QtQuick.Layouts 1.3
import org.kde.kirigami 2.7 as Kirigami
Item
{
id: control
property alias model : _listView.model
property alias delegate : _listView.delegate
property alias contentHeight : _listView.contentHeight
property alias currentIndex : _listView.currentIndex
property alias currentItem : _listView.currentItem
property alias listView : _listView
default property alias content : _content.data
implicitHeight: _content.implicitHeight
ColumnLayout
{
id: _content
anchors.fill: parent
spacing: Kirigami.Units.largeSpacing
ListView
{
id: _listView
Layout.minimumHeight: 0
Layout.preferredHeight: contentHeight
Layout.maximumHeight: 500
Layout.fillWidth: true
Layout.fillHeight: true
Layout.alignment: Qt.AlignCenter
spacing: Kirigami.Units.smallSpacing
clip: true
boundsBehavior: Flickable.StopAtBounds
Rectangle
{
z: control.z - 1
anchors.fill: parent
color: Qt.lighter(Kirigami.Theme.backgroundColor)
radius: 5
opacity: 0.5
}
}
}
}

View file

@ -1,237 +0,0 @@
/* === This file is part of Calamares - <https://github.com/calamares> ===
*
* Copyright 2020, Anke Boersma <demm@kaosx.us>
*
* Calamares is Free Software: see the License-Identifier above.
*
*/
import QtQuick 2.10
import QtQuick.Controls 2.10
import QtQuick.Window 2.14
import QtQuick.Layouts 1.3
import org.kde.kirigami 2.7 as Kirigami
import QtLocation 5.14
import QtPositioning 5.14
Column {
width: parent.width
//Needs to come from .conf/geoip
property var configCity: "New York"
property var configCountry: "USA"
property var configTimezone: "America/New York"
property var geoipCity: "" //"Amsterdam"
property var geoipCountry: "" //"Netherlands"
property var geoipTimezone: "" //"Europe/Amsterdam"
// vars that will stay once connected
property var cityName: (geoipCity != "") ? geoipCity : configCity
property var countryName: (geoipCountry != "") ? geoipCountry : configCountry
property var timeZone: (geoipTimezone != "") ? geoipTimezone : configTimezone
function getIp() {
var xhr = new XMLHttpRequest
xhr.onreadystatechange = function() {
if (xhr.readyState === XMLHttpRequest.DONE) {
var responseJSON = JSON.parse(xhr.responseText)
var tz = responseJSON.timezone
var ct = responseJSON.city
var cy = responseJSON.country
tzText.text = qsTr("Timezone: ") + tz
cityName = ct
countryName = cy
//config.setCurrentLocation(tz)
}
}
// Define the target of the request
xhr.open("GET", "https://get.geojs.io/v1/ip/geo.json")
// Execute the request
xhr.send()
}
function getTz() {
var xhr = new XMLHttpRequest
var latC = map.center.latitude
var lonC = map.center.longitude
xhr.onreadystatechange = function() {
if (xhr.readyState === XMLHttpRequest.DONE) {
var responseJSON = JSON.parse(xhr.responseText)
var tz2 = responseJSON.timezoneId
tzText.text = qsTr("Timezone: ") + tz2
config.setCurrentLocation(tz2)
}
}
// Needs to move to localeq.conf, each distribution will need their own account
xhr.open("GET", "http://api.geonames.org/timezoneJSON?lat=" + latC + "&lng=" + lonC + "&username=demm")
xhr.send()
}
Rectangle {
width: parent.width
height: parent.height / 1.28
Plugin {
id: mapPlugin
name: "esri" // "esri", "here", "itemsoverlay", "mapbox", "mapboxgl", "osm"
}
Map {
id: map
anchors.fill: parent
plugin: mapPlugin
activeMapType: supportedMapTypes[0]
//might be desirable to set zoom level configurable?
zoomLevel: 5
bearing: 0
tilt: 0
copyrightsVisible : true
fieldOfView : 0
GeocodeModel {
id: geocodeModel
plugin: Plugin { name: "osm" }
autoUpdate: true
query: Address {
id: address
city: cityName
country: countryName
}
onLocationsChanged: {
if (count ) {
map.center.latitude = get(0).coordinate.latitude
//console.log('changed:', count);
map.center.longitude = get(0).coordinate.longitude
}
}
}
MapQuickItem {
id: marker
anchorPoint.x: image.width/4
anchorPoint.y: image.height
coordinate: QtPositioning.coordinate(
map.center.latitude,
map.center.longitude)
//coordinate: QtPositioning.coordinate(40.730610, -73.935242) // New York
sourceItem: Image {
id: image
width: 32
height: 32
source: "img/pin.svg"
}
}
MouseArea {
acceptedButtons: Qt.LeftButton
anchors.fill: map
hoverEnabled: true
property var coordinate: map.toCoordinate(Qt.point(mouseX, mouseY))
Label {
x: parent.mouseX - width
y: parent.mouseY - height - 5
text: "%1, %2".arg(
parent.coordinate.latitude).arg(parent.coordinate.longitude)
}
onClicked: {
marker.coordinate = coordinate
map.center.latitude = coordinate.latitude
map.center.longitude = coordinate.longitude
getTz();
console.log(coordinate.latitude, coordinate.longitude)
}
}
}
Column {
anchors.bottom: parent.bottom
anchors.right: parent.right
anchors.bottomMargin: 5
anchors.rightMargin: 10
MouseArea {
width: 32
height:32
cursorShape: Qt.PointingHandCursor
Image {
source: "img/plus.png"
anchors.centerIn: parent
width: 36
height: 36
}
onClicked: map.zoomLevel++
}
MouseArea {
width: 32
height:32
cursorShape: Qt.PointingHandCursor
Image {
source: "img/minus.png"
anchors.centerIn: parent
width: 32
height: 32
}
onClicked: map.zoomLevel--
}
}
}
Rectangle {
width: parent.width
height: 100
anchors.horizontalCenter: parent.horizontalCenter
Item {
id: location
Kirigami.Theme.inherit: false
Kirigami.Theme.colorSet: Kirigami.Theme.Complementary
anchors.horizontalCenter: parent.horizontalCenter
Rectangle {
anchors.centerIn: parent
width: 300
height: 30
color: Kirigami.Theme.backgroundColor
Text {
id: tzText
text: tzText.text
//text: qsTr("Timezone: %1").arg(config.currentTimezoneName)
color: Kirigami.Theme.textColor
anchors.centerIn: parent
}
Component.onCompleted: getIp();
}
}
Text {
anchors.top: location.bottom
anchors.topMargin: 20
padding: 10
width: parent.width
wrapMode: Text.WordWrap
horizontalAlignment: Text.AlignHCenter
Kirigami.Theme.backgroundColor: Kirigami.Theme.backgroundColor
text: qsTr("Please select your preferred location on the map so the installer can suggest the locale
and timezone settings for you. You can fine-tune the suggested settings below. Search the map by dragging
to move and using the +/- buttons to zoom in/out or use mouse scrolling for zooming.")
}
}
}

View file

@ -1,232 +0,0 @@
/* === This file is part of Calamares - <https://calamares.io> ===
*
* SPDX-FileCopyrightText: 2020 Anke Boersma <demm@kaosx.us>
* SPDX-License-Identifier: GPL-3.0-or-later
*
* Calamares is Free Software: see the License-Identifier above.
*
*/
import io.calamares.core 1.0
import io.calamares.ui 1.0
import QtQuick 2.10
import QtQuick.Controls 2.10
import QtQuick.Window 2.14
import QtQuick.Layouts 1.3
import org.kde.kirigami 2.7 as Kirigami
Page {
width: 800 //parent.width
height: 500
StackView {
id: stack
anchors.fill: parent
clip: true
initialItem: Item {
Label {
id: region
anchors.horizontalCenter: parent.horizontalCenter
color: Kirigami.Theme.textColor
horizontalAlignment: Text.AlignCenter
text: qsTr("Select your preferred Region, or use the default one based on your current location.")
}
ListView {
id: list
ScrollBar.vertical: ScrollBar {
active: true
}
width: parent.width / 2
height: 250
anchors.centerIn: parent
anchors.verticalCenterOffset: -30
focus: true
clip: true
boundsBehavior: Flickable.StopAtBounds
spacing: 2
Rectangle {
z: parent.z - 1
anchors.fill: parent
color: "#BDC3C7"
radius: 5
opacity: 0.7
}
// model loads, dozens of variations tried for currentIndex all fail
model: config.regionModel
currentIndex: config.currentIndex
delegate: ItemDelegate {
hoverEnabled: true
width: parent.width
highlighted: ListView.isCurrentItem
Label {
text: name
Layout.fillHeight: true
Layout.fillWidth: true
width: parent.width
height: 30
color: highlighted ? Kirigami.Theme.highlightedTextColor : Kirigami.Theme.textColor
background: Rectangle {
color: highlighted || hovered ? Kirigami.Theme.highlightColor : "white" //Kirigami.Theme.backgroundColor
opacity: highlighted || hovered ? 0.5 : 0.3
}
}
onClicked: {
list.model.currentIndex = index
// correct to use config.currentTimezoneName when index is updated?
tztext.text = qsTr("Timezone: %1").arg(config.currentTimezoneName)
stack.push(zoneView)
}
}
}
}
Component {
id: zoneView
Item {
Label {
id: zone
anchors.horizontalCenter: parent.horizontalCenter
color: Kirigami.Theme.textColor
text: qsTr("Select your preferred Zone within your Region.")
}
ListView {
id: list2
ScrollBar.vertical: ScrollBar {
active: true
}
width: parent.width / 2
height: 250
anchors.centerIn: parent
anchors.verticalCenterOffset: -30
focus: true
clip: true
boundsBehavior: Flickable.StopAtBounds
spacing: 2
Rectangle {
z: parent.z - 1
anchors.fill: parent
color: "#BDC3C7"
radius: 5
opacity: 0.7
}
// model loads, dozens of variations tried for currentIndex all fail
model: config.regionalZonesModel
currentIndex: config.currentIndex
delegate: ItemDelegate {
hoverEnabled: true
width: parent.width
highlighted: ListView.isCurrentItem
Label {
text: name
Layout.fillHeight: true
Layout.fillWidth: true
width: parent.width
height: 30
color: highlighted ? Kirigami.Theme.highlightedTextColor : Kirigami.Theme.textColor
background: Rectangle {
color: highlighted || hovered ? Kirigami.Theme.highlightColor : "white" //Kirigami.Theme.backgroundColor
opacity: highlighted || hovered ? 0.5 : 0.3
}
}
onClicked: {
list2.model.currentIndex = index
list2.positionViewAtIndex(index, ListView.Center)
// correct to use config.currentTimezoneName when index is updated?
tztext.text = qsTr("Timezone: %1").arg(config.currentTimezoneName)
}
}
}
Button {
Layout.fillWidth: true
anchors.verticalCenter: parent.verticalCenter
anchors.verticalCenterOffset: -30
anchors.left: parent.left
anchors.leftMargin: parent.width / 15
icon.name: "go-previous"
text: qsTr("Zones")
onClicked: stack.pop()
}
}
}
}
Rectangle {
width: parent.width
height: 60
anchors.horizontalCenter: parent.horizontalCenter
anchors.bottom: parent.bottom
Item {
id: location
Kirigami.Theme.inherit: false
Kirigami.Theme.colorSet: Kirigami.Theme.Complementary
anchors.horizontalCenter: parent.horizontalCenter
Rectangle {
anchors.centerIn: parent
width: 300
height: 30
color: Kirigami.Theme.backgroundColor
Text {
id: tztext
text: qsTr("Timezone: %1").arg(config.currentTimezoneName)
color: Kirigami.Theme.textColor
anchors.centerIn: parent
}
}
}
Text {
anchors.top: location.bottom
anchors.topMargin: 20
padding: 10
width: parent.width
wrapMode: Text.WordWrap
horizontalAlignment: Text.AlignHCenter
Kirigami.Theme.backgroundColor: Kirigami.Theme.backgroundColor
text: qsTr("You can fine-tune Language and Locale settings below.")
}
}
}

View file

@ -1,84 +0,0 @@
/* === This file is part of Calamares - <https://github.com/calamares> ===
*
* Copyright 2020, Anke Boersma <demm@kaosx.us>
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Calamares is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Calamares. If not, see <http://www.gnu.org/licenses/>.
*/
import QtQuick 2.10
import QtQuick.Controls 2.10
import QtQuick.Window 2.14
import QtQuick.Layouts 1.3
//import org.kde.kirigami 2.7 as Kirigami
Column {
width: 800
height: 480
//Needs to come from localeq.conf
property var configTimezone: "America/New York"
Rectangle {
width: parent.width
height: parent.height / 1.28
Image {
id: image
anchors.fill: parent
source: "img/worldmap.png"
width: parent.width
}
}
Rectangle {
width: parent.width
height: 100
anchors.horizontalCenter: parent.horizontalCenter
Item {
id: location
//Kirigami.Theme.inherit: false
//Kirigami.Theme.colorSet: Kirigami.Theme.Complementary
anchors.horizontalCenter: parent.horizontalCenter
Rectangle {
anchors.centerIn: parent
width: 300
height: 30
//color: Kirigami.Theme.backgroundColor
color: "#050505"
Text {
text: qsTr("Timezone: %1").arg(configTimezone)
//text: qsTr("Timezone: %1").arg(config.currentTimezoneName)
//color: Kirigami.Theme.textColor
color: "#fcfcfc"
anchors.centerIn: parent
}
}
}
Text {
anchors.top: location.bottom
anchors.topMargin: 20
padding: 10
width: parent.width
wrapMode: Text.WordWrap
horizontalAlignment: Text.AlignHCenter
//Kirigami.Theme.backgroundColor: Kirigami.Theme.backgroundColor
text: qsTr("To be able to select a timezone, make sure you are connected to the internet. Restart the installer after connecting. You can fine-tune Language and Locale settings below.")
}
}
}

View file

@ -1,343 +0,0 @@
import QtQuick 2.10
import QtQuick.Controls 2.10
import QtQuick.Layouts 1.3
import org.kde.kirigami 2.7 as Kirigami
import QtGraphicalEffects 1.0
import "."
import io.calamares.ui 1.0
import io.calamares.core 1.0
Page
{
id: control
property string subtitle
property string message
property alias icon : _icon
property alias stackView: _stackView
default property alias content : _card.data
property alias backButton : _backButton
signal goBack()
background: Rectangle
{
id: _background
color: control.Kirigami.Theme.backgroundColor
Image
{
id: _wallpaper
height: parent.height
width: parent.width
sourceSize.height: 600
sourceSize.width: 800
fillMode: Image.PreserveAspectCrop
antialiasing: false
smooth: false
asynchronous: true
cache: true
source: "./calamares_bg_image.png"
}
FastBlur
{
id: fastBlur
anchors.fill: parent
source: _wallpaper
radius: 130
transparentBorder: false
cached: true
}
OpacityMask
{
source: mask
maskSource: parent
}
LinearGradient
{
id: mask
anchors.fill: parent
gradient: Gradient
{
GradientStop { position: 0.6; color: "transparent"}
GradientStop { position: 0.9; color: _background.color}
}
start: Qt.point(0, 0)
end: Qt.point(0, control.height-48)
}
}
ColumnLayout
{
anchors.centerIn: parent
height: Math.min(800, parent.height * 0.95)
width: Math.min(1200, parent.width * 0.95)
Page
{
id: _card
clip: true
Layout.fillWidth: true
Layout.fillHeight: true
Component.onCompleted: fadeIn.start()
NumberAnimation on opacity
{
id: fadeIn
duration: 150
from: 0
to: 1.0
easing.type: Easing.OutQuad
}
header: ToolBar
{
visible: _stackView.depth > 1
background: null
ToolButton
{
id:_backButton
text: _stackView.get(Math.max(0, _stackView.currentItem.StackView.index - 1), StackView.DontLoad).title
icon.name: "go-previous"
flat: true
onClicked:
{
if(_stackView.depth > 1)
{
_stackView.pop()
}
control.goBack()
}
}
}
background: Rectangle
{
color: Kirigami.Theme.backgroundColor
radius: 20
}
RowLayout
{
anchors.fill: parent
anchors.margins: Kirigami.Units.largeSpacing * 6
spacing: Kirigami.Units.largeSpacing * 2
ColumnLayout
{
id: _content
Layout.fillHeight: true
Layout.fillWidth: true
Layout.margins: Kirigami.Units.largeSpacing * 2
Layout.maximumWidth: 400
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
spacing: Kirigami.Units.largeSpacing * 2
Item
{
Layout.fillWidth: true
Layout.preferredHeight: 100
Kirigami.Icon
{
id: _icon
height: 80
width: height
anchors.centerIn: parent
FadeBehavior on source { fadeProperty: "scale" }
}
}
Label
{
Layout.fillWidth: true
Layout.preferredHeight: Math.min(implicitHeight, 200)
horizontalAlignment: Qt.AlignHCenter
wrapMode: Text.Wrap
elide: Text.ElideMiddle
text: control.title
font.bold: true
font.weight: Font.Bold
font.pointSize: 24
FadeBehavior on text { }
}
Label
{
Layout.fillWidth: true
Layout.preferredHeight: Math.min(implicitHeight, 200)
horizontalAlignment: Qt.AlignHCenter
wrapMode: Text.Wrap
elide: Text.ElideMiddle
text: control.subtitle
font.weight: Font.Light
font.pointSize: 12
FadeBehavior on text { }
}
Label
{
Layout.fillWidth: true
Layout.preferredHeight: Math.min(implicitHeight, 200)
horizontalAlignment: Qt.AlignHCenter
wrapMode: Text.Wrap
elide: Text.ElideMiddle
text: control.message
font.weight: Font.Light
font.pointSize: 10
FadeBehavior on text { }
}
}
StackView
{
id: _stackView
Layout.fillHeight: true
Layout.fillWidth: true
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
Layout.margins: Kirigami.Units.largeSpacing * 2
Layout.minimumWidth: 300
Layout.maximumWidth: 500
Layout.maximumHeight: currentItem.implicitHeight
Layout.minimumHeight: 200
clip: true
pushEnter: Transition
{
NumberAnimation {
property: "opacity"
duration: 150
to: 1
easing.type: Easing.OutQuad
}
}
popEnter: Transition
{
NumberAnimation {
property: "opacity"
duration: 150
to: 1
easing.type: Easing.OutQuad
}
}
popExit: Transition
{
NumberAnimation {
property: "opacity"
duration: 150
to: 0
easing.type: Easing.InQuad
}
}
pushExit: Transition
{
NumberAnimation {
property: "opacity"
duration: 150
to: 0
easing.type: Easing.InQuad
}
}
}
}
}
ViewStepsBar
{
Layout.fillWidth: true
Layout.maximumWidth: 900
Layout.minimumWidth: 400
Layout.alignment: Qt.AlignCenter
}
}
//footer: Column
//{
//width: parent.width
//Item
//{
//height: 100
//width: parent.width
//Row
//{
//spacing: Kirigami.Units.largeSpacing
//anchors.centerIn: parent
//Button
//{
////text: ViewManager.quitLabel;
//icon.name: ViewManager.quitIcon;
//ToolTip.visible: hovered
//ToolTip.timeout: 5000
//ToolTip.delay: 1000
//ToolTip.text: ViewManager.quitTooltip;
//enabled: ViewManager.quitEnabled;
//visible: ViewManager.quitVisible;
//onClicked: { ViewManager.quit(); }
//}
//Button
//{
//text: ViewManager.backLabel;
//icon.name: ViewManager.backIcon;
//enabled: ViewManager.backEnabled;
//visible: true;
//onClicked: { ViewManager.back(); }
//height: implicitHeight
//Kirigami.Theme.backgroundColor: Qt.rgba(Kirigami.Theme.backgroundColor.r, Kirigami.Theme.backgroundColor.g, Kirigami.Theme.backgroundColor.b, 0.4)
//Kirigami.Theme.textColor: "#fff"
//}
//Button
//{
//height: implicitHeight
//text: ViewManager.nextLabel;
//icon.name: ViewManager.nextIcon;
//// enabled: ViewManager.nextEnabled;
//enabled: true;
//visible: true;
//onClicked: { ViewManager.next(); }
//Kirigami.Theme.backgroundColor: Qt.rgba(Kirigami.Theme.backgroundColor.r, Kirigami.Theme.backgroundColor.g, Kirigami.Theme.backgroundColor.b, 0.4)
//Kirigami.Theme.textColor: "#fff"
//}
//}
//}
//}
}

View file

@ -1,71 +0,0 @@
import QtQuick 2.10
import QtQuick.Controls 2.10
import QtQuick.Layouts 1.3
import org.kde.kirigami 2.7 as Kirigami
import QtGraphicalEffects 1.0
import io.calamares.ui 1.0
import io.calamares.core 1.0
Item
{
implicitHeight: 80
RowLayout
{
anchors.fill: parent
anchors.margins: Kirigami.Units.largeSpacing
spacing: 0
Repeater
{
id: _viewManagerRepeater
model: ViewManager
RowLayout
{
opacity: index !== _viewManagerRepeater.count-1 ? 1 : 0
Layout.fillWidth: true
Layout.fillHeight: true
spacing: 0
Rectangle
{
Layout.alignment: Qt.AlignCenter
Layout.fillWidth: true
Layout.preferredHeight: 4
anchors.verticalCenter: parent.verticalCenter
color: index !== 0 ? (ViewManager.currentStepIndex >= index ? Kirigami.Theme.highlightColor : Kirigami.Theme.textColor) : "transparent"
}
Column
{
Layout.alignment: Qt.AlignCenter
Layout.preferredWidth: 22
Layout.preferredHeight: 22
spacing: Kirigami.Units.largeSpacing
Rectangle
{
id: _bgCheck
height: 22
width: height
radius: height
border.color: ViewManager.currentStepIndex === index ? Kirigami.Theme.textColor : (ViewManager.currentStepIndex >= index ? Kirigami.Theme.highlightColor : Kirigami.Theme.textColor)
border.width: 4
color: ViewManager.currentStepIndex >= index ? Kirigami.Theme.highlightColor : "transparent"
}
Label
{
text: display
horizontalAlignment: Qt.AlignHCenter
anchors.horizontalCenter: parent.horizontalCenter
color: Kirigami.Theme.textColor
font.bold: true
}
}
}
}
}
}

View file

@ -1,50 +1,41 @@
--- ---
componentName: parchlinux componentName: ParchLinux
# This selects between different welcome texts. When false, uses
# the traditional "Welcome to the %1 installer.", and when true,
# uses "Welcome to the Calamares installer for %1." This allows
# to distinguish this installer from other installers for the
# same distribution.
welcomeStyleCalamares: false welcomeStyleCalamares: false
# Should the welcome image (productWelcome, below) be scaled
# up beyond its natural size?
welcomeExpandingLogo: true welcomeExpandingLogo: true
windowExpanding: fullscreen
windowPlacement: center
sidebar: none
navigation: widget
strings: strings:
productName: Parch Linux productName: ParchLinux
shortProductName: Parch shortProductName: Parch
version: Rolling version: Rolling
shortVersion: Rolling shortVersion: Rolling
versionedName: Parch Linux Rolling versionedName: Parch Linux Rolling
shortVersionedName: Parch Linux Rolling shortVersionedName: ParchLinux
bootloaderEntryName: Parch
productUrl: https://parchlinux.ir
supportUrl: https://github.com/parchlinux
knownIssuesUrl: https://parchlinux.ir
releaseNotesUrl: https://blog.parchlinux.ir
images: images:
productLogo: "calamares_product_icon.svg" productIcon: "logo.png"
productIcon: "calamares_product_logo.svg" productLogo: "squid.png"
productWelcome: "calamares_welcome_logo.svg" productWelcome: "idioma.png"
style:
sidebarBackground: "#FFFFFF"
sidebarText: "#292F34"
sidebarTextSelect: "#ffffff"
sidebarTextHighlight: "#2093d1"
slideshow: "show.qml" slideshow: "show.qml"
# Colors for text and background components. slideshowAPI: 2
#
# - sidebarBackground is the background of the sidebar
# - sidebarText is the (foreground) text color
# - sidebarTextHighlight sets the background of the selected (current) step.
# Optional, and defaults to the application palette.
# - sidebarSelect is the text color of the selected step.
#
style:
sidebarBackground: "#231F20"
sidebarText: "#FFFFFF"
sidebarTextSelect: "#FFFFFF"
sidebarTextHighlight: "#26C6DA"
sidebar: none uploadServer :
windowExpanding: fullscreen type : "fiche"
url : "http://termbin.com:9999"

View file

@ -1,86 +0,0 @@
import QtQuick 2.10
import QtQuick.Controls 2.10
import QtQuick.Layouts 1.3
import org.kde.kirigami 2.7 as Kirigami
import QtGraphicalEffects 1.0
import io.calamares.ui 1.0
import io.calamares.core 1.0
import "."
Page
{
id: control
width: parent.width
height: parent.height
background: Item
{
id: _background
Image
{
id: _wallpaper
height: parent.height
width: parent.width
sourceSize.height: 600
sourceSize.width: 800
fillMode: Image.PreserveAspectCrop
antialiasing: false
smooth: false
asynchronous: true
cache: true
source: Branding.imagePath(Branding.ProductWallpaper)
}
FastBlur
{
id: fastBlur
anchors.fill: parent
source: _wallpaper
radius: 130
transparentBorder: false
cached: true
}
}
Column
{
anchors.fill: parent
Rectangle
{
id: hello
width: 200
height: 100
color: "red"
Text {
anchors.centerIn: parent
text: Branding.string(Branding.VersionedName)
}
}
/* perhaps we could show a branding image here */
Repeater
{
model: ViewManager
Rectangle {
width: 200
height: 75
color: "black"
Text {
color: completed ? "green" : "yellow"
text: display
}
}
}
}
}

View file

@ -1,92 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="2560"
height="1920"
viewBox="0 0 677.33332 508.00001"
version="1.1"
id="svg8"
sodipodi:docname="calamares_background.svg"
inkscape:version="0.92.3 (unknown)"
inkscape:export-filename="/home/uri/bitmap.png"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96">
<defs
id="defs2" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.25"
inkscape:cx="1231.0964"
inkscape:cy="931.0807"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="true"
units="px"
inkscape:showpageshadow="false"
borderlayer="true"
showguides="true"
inkscape:guide-bbox="true"
inkscape:window-width="1400"
inkscape:window-height="1380"
inkscape:window-x="0"
inkscape:window-y="32"
inkscape:window-maximized="0"
inkscape:pagecheckerboard="true">
<inkscape:grid
type="xygrid"
id="grid4485"
empspacing="5" />
<sodipodi:guide
position="677.33334,285.75"
orientation="1,0"
id="guide4487"
inkscape:locked="false"
inkscape:label="2560"
inkscape:color="rgb(0,0,255)" />
<sodipodi:guide
position="0,0"
orientation="1,0"
id="guide4489"
inkscape:locked="false"
inkscape:label="1000"
inkscape:color="rgb(0,0,255)" />
</sodipodi:namedview>
<metadata
id="metadata5">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Capa 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,211.00002)">
<rect
style="opacity:1;fill:#2b2c31;fill-opacity:1;stroke:none;stroke-width:0.52916664;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="rect912"
width="677.33331"
height="508"
x="0"
y="-211.00002" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 241 KiB

View file

@ -1,119 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
width="256"
height="256"
viewBox="0 0 67.733332 67.733335"
version="1.1"
id="svg8"
sodipodi:docname="calamares_install_image.svg"
inkscape:version="1.3 (0e150ed6c4, 2023-07-21)"
inkscape:export-filename="/home/uri/bitmap.png"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96"
xml:space="preserve"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/"><defs
id="defs2"><rect
x="17"
y="139.5"
width="220"
height="97"
id="rect1" /><linearGradient
inkscape:collect="always"
id="linearGradient962"><stop
style="stop-color:#090180;stop-opacity:1;"
offset="0"
id="stop958" /><stop
style="stop-color:#0081c0;stop-opacity:1;"
offset="1"
id="stop960" /></linearGradient><linearGradient
inkscape:collect="always"
xlink:href="#linearGradient962"
id="linearGradient964"
x1="203.53801"
y1="319.10983"
x2="282.91855"
y2="239.35014"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0.21644154,0,0,0.24596501,-23.196015,198.71105)" /></defs><sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="2"
inkscape:cx="149.75"
inkscape:cy="150.5"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="true"
units="px"
inkscape:showpageshadow="false"
borderlayer="true"
showguides="true"
inkscape:guide-bbox="true"
inkscape:window-width="1600"
inkscape:window-height="828"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:pagecheckerboard="true"
inkscape:document-rotation="0"
inkscape:deskcolor="#d1d1d1"><inkscape:grid
type="xygrid"
id="grid4485"
empspacing="5"
originx="0"
originy="0"
spacingy="1"
spacingx="1"
units="px"
visible="true" /><sodipodi:guide
position="67.733334,67.733334"
orientation="1,0"
id="guide4487"
inkscape:locked="false"
inkscape:label="2560"
inkscape:color="rgb(0,0,255)" /><sodipodi:guide
position="0,0"
orientation="1,0"
id="guide4489"
inkscape:locked="false"
inkscape:label="1000"
inkscape:color="rgb(0,0,255)" /><sodipodi:guide
position="67.733333,33.866667"
orientation="0,1"
id="guide851"
inkscape:locked="false" /><sodipodi:guide
position="33.866666,67.733335"
orientation="1,0"
id="guide853"
inkscape:locked="false" /></sodipodi:namedview><metadata
id="metadata5"><rdf:RDF><cc:Work
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /></cc:Work></rdf:RDF></metadata><g
inkscape:label="Capa 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-229.26664)"><rect
style="opacity:1;fill:#2b2c31;fill-opacity:1;stroke:none;stroke-width:0.0611029;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="rect912"
width="67.73333"
height="67.73333"
x="0"
y="229.26665" /><text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:10.5833px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.264583"
x="6.614583"
y="294.35413"
id="text885" /><path
style="fill:url(#linearGradient964);fill-opacity:1;stroke:none;stroke-width:0.545891;stroke-linecap:round;stroke-dasharray:none;stroke-opacity:1"
d="m 31.736176,288.47017 c -4.067296,-1.24666 -7.858979,-5.17469 -10.878111,-11.26929 l -0.671413,-1.35535 0.72864,-1.47735 c 1.032482,-2.09338 2.939781,-4.90748 4.996632,-7.37218 0.972098,-1.16484 1.742753,-2.146 1.712568,-2.1803 -0.03018,-0.0343 -1.956601,1.37024 -4.280928,3.12117 -2.324319,1.75096 -4.300565,3.18354 -4.391653,3.18354 -0.180208,0 -0.468133,-1.09069 -0.853442,-3.23296 -0.13554,-0.75358 -0.24309,-3.12289 -0.238969,-5.2651 0.0083,-4.26141 0.406458,-7.11072 1.45955,-10.44173 0.673289,-2.12965 2.090708,-5.37416 2.347799,-5.37416 0.105331,0 1.566,0.7436 3.245916,1.65241 1.679916,0.90881 3.144934,1.65241 3.255601,1.65241 0.11067,0 -0.486391,-0.85447 -1.326791,-1.8988 -0.8404,-1.04434 -1.982619,-2.47901 -2.538264,-3.18819 l -1.01026,-1.28936 1.737296,-2.02666 c 2.97313,-3.46836 6.316638,-5.6542 10.294049,-6.72974 1.5599,-0.42182 2.257859,-0.47697 4.737546,-0.3743 1.599473,0.0663 3.375508,0.2588 3.946747,0.42814 l 1.038616,0.30771 -1.661787,0.15018 c -2.147575,0.19409 -3.641943,0.98317 -5.037574,2.66013 -1.251285,1.50349 -1.787705,2.63865 -2.12532,4.49752 -0.396106,2.1809 0.03204,4.75315 1.244133,7.47472 0.257423,0.57802 1.406159,2.69741 2.552742,4.7098 1.146587,2.01239 2.6389,4.87246 3.316243,6.3557 l 1.231542,2.69683 -0.487019,0.4312 c -0.267863,0.23723 -1.795682,1.45958 -3.395154,2.71647 -1.599469,1.25692 -2.947075,2.31907 -2.994683,2.36034 -0.366131,0.31746 0.555099,0.24442 3.12204,-0.24789 4.914558,-0.94224 4.910842,-0.9419 5.042086,-0.45583 0.713699,2.64327 0.94496,7.83597 0.444219,9.97426 -1.109176,4.73643 -4.535812,8.58771 -8.721227,9.802 -1.514145,0.4393 -4.415745,0.44158 -5.84137,0.005 z"
id="path9138" /></g></svg>

Before

Width:  |  Height:  |  Size: 5.8 KiB

View file

@ -1,74 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="512"
height="512"
viewBox="0 0 512 512"
version="1.1"
id="svg5"
inkscape:export-filename="Parch_Profile_BW1.png"
inkscape:export-xdpi="192"
inkscape:export-ydpi="192"
inkscape:version="1.2.1 (9c6d41e410, 2022-07-14)"
sodipodi:docname="Parch_Profile_BW1.svg"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview7"
pagecolor="#505050"
bordercolor="#ffffff"
borderopacity="1"
inkscape:showpageshadow="0"
inkscape:pageopacity="0"
inkscape:pagecheckerboard="1"
inkscape:deskcolor="#505050"
inkscape:document-units="px"
showgrid="false"
inkscape:zoom="0.98373095"
inkscape:cx="142.31534"
inkscape:cy="249.05184"
inkscape:window-width="1366"
inkscape:window-height="705"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:current-layer="layer1" />
<defs
id="defs2">
<linearGradient
inkscape:collect="always"
id="linearGradient962">
<stop
style="stop-color:#090180;stop-opacity:1;"
offset="0"
id="stop958" />
<stop
style="stop-color:#0081c0;stop-opacity:1;"
offset="1"
id="stop960" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient962"
id="linearGradient964"
x1="203.53801"
y1="319.10983"
x2="282.91855"
y2="239.35014"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(2.1450176,0,0,2.1450176,-293.12452,-293.12452)" />
</defs>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1">
<path
style="fill:url(#linearGradient964);fill-opacity:1;stroke:none;stroke-width:5.07492;stroke-linecap:round;stroke-dasharray:none;stroke-opacity:1"
d="M 251.27428,489.6492 C 210.96584,478.77726 173.38881,444.52155 143.46809,391.37169 l -6.65397,-11.81985 7.2211,-12.88357 c 10.23231,-18.25614 29.13435,-42.79729 49.51852,-64.29157 9.63386,-10.15852 17.27136,-18.71484 16.9722,-19.01399 -0.29915,-0.29915 -19.39066,11.94949 -42.42562,27.21918 -23.03489,15.26973 -42.62023,27.76313 -43.52294,27.76313 -1.78592,0 -4.63937,-9.51177 -8.45795,-28.194 -1.3433,-6.57199 -2.40903,-27.23432 -2.36826,-45.91624 0.0813,-37.1628 4.02817,-62.01124 14.4647,-91.06027 6.67254,-18.57249 20.7197,-46.86718 23.26758,-46.86718 1.04392,0 15.51965,6.48465 32.16825,14.41032 16.64862,7.92568 31.16749,14.41033 32.26423,14.41033 1.09676,0 -4.8203,-7.45155 -13.14898,-16.55901 -8.32868,-9.10747 -19.64852,-21.61906 -25.15517,-27.80351 l -10.01206,-11.244511 17.21726,-17.67423 c 29.46484,-30.246911 62.60028,-49.309034 102.01792,-58.68877 15.4592,-3.678662 22.37625,-4.159554 46.95089,-3.264166 15.85136,0.577554 33.45254,2.257674 39.11374,3.733625 l 10.29309,2.683495 -16.46894,1.309536 c -21.28328,1.692403 -36.09305,8.574132 -49.92428,23.198626 -12.4007,13.111847 -17.71682,23.01134 -21.06271,39.222194 -3.92556,19.019231 0.31744,41.451491 12.32983,65.185741 2.55115,5.04062 13.93555,23.52363 25.29864,41.07335 11.3631,17.54974 26.15248,42.49186 32.86522,55.427 l 12.20505,23.51842 -4.82655,3.76047 c -2.65463,2.06825 -17.79588,12.72877 -33.64726,23.69003 -15.85134,10.96125 -29.20662,20.22404 -29.67843,20.584 -3.6285,2.76844 5.50122,2.13071 30.94058,-2.1613 48.70514,-8.21725 48.66832,-8.21432 49.96897,-3.97532 7.07303,23.05158 9.36492,68.33612 4.40238,86.98383 -10.99234,41.30556 -44.9516,74.89187 -86.43063,85.48148 -15.00575,3.83101 -43.7617,3.85098 -57.89021,0.0403 z"
id="path9138" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 3.9 KiB

View file

@ -1,74 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="512"
height="512"
viewBox="0 0 512 512"
version="1.1"
id="svg5"
inkscape:export-filename="Parch_Profile_BW1.png"
inkscape:export-xdpi="192"
inkscape:export-ydpi="192"
inkscape:version="1.2.1 (9c6d41e410, 2022-07-14)"
sodipodi:docname="Parch_Profile_BW1.svg"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview7"
pagecolor="#505050"
bordercolor="#ffffff"
borderopacity="1"
inkscape:showpageshadow="0"
inkscape:pageopacity="0"
inkscape:pagecheckerboard="1"
inkscape:deskcolor="#505050"
inkscape:document-units="px"
showgrid="false"
inkscape:zoom="0.98373095"
inkscape:cx="142.31534"
inkscape:cy="249.05184"
inkscape:window-width="1366"
inkscape:window-height="705"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:current-layer="layer1" />
<defs
id="defs2">
<linearGradient
inkscape:collect="always"
id="linearGradient962">
<stop
style="stop-color:#090180;stop-opacity:1;"
offset="0"
id="stop958" />
<stop
style="stop-color:#0081c0;stop-opacity:1;"
offset="1"
id="stop960" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient962"
id="linearGradient964"
x1="203.53801"
y1="319.10983"
x2="282.91855"
y2="239.35014"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(2.1450176,0,0,2.1450176,-293.12452,-293.12452)" />
</defs>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1">
<path
style="fill:url(#linearGradient964);fill-opacity:1;stroke:none;stroke-width:5.07492;stroke-linecap:round;stroke-dasharray:none;stroke-opacity:1"
d="M 251.27428,489.6492 C 210.96584,478.77726 173.38881,444.52155 143.46809,391.37169 l -6.65397,-11.81985 7.2211,-12.88357 c 10.23231,-18.25614 29.13435,-42.79729 49.51852,-64.29157 9.63386,-10.15852 17.27136,-18.71484 16.9722,-19.01399 -0.29915,-0.29915 -19.39066,11.94949 -42.42562,27.21918 -23.03489,15.26973 -42.62023,27.76313 -43.52294,27.76313 -1.78592,0 -4.63937,-9.51177 -8.45795,-28.194 -1.3433,-6.57199 -2.40903,-27.23432 -2.36826,-45.91624 0.0813,-37.1628 4.02817,-62.01124 14.4647,-91.06027 6.67254,-18.57249 20.7197,-46.86718 23.26758,-46.86718 1.04392,0 15.51965,6.48465 32.16825,14.41032 16.64862,7.92568 31.16749,14.41033 32.26423,14.41033 1.09676,0 -4.8203,-7.45155 -13.14898,-16.55901 -8.32868,-9.10747 -19.64852,-21.61906 -25.15517,-27.80351 l -10.01206,-11.244511 17.21726,-17.67423 c 29.46484,-30.246911 62.60028,-49.309034 102.01792,-58.68877 15.4592,-3.678662 22.37625,-4.159554 46.95089,-3.264166 15.85136,0.577554 33.45254,2.257674 39.11374,3.733625 l 10.29309,2.683495 -16.46894,1.309536 c -21.28328,1.692403 -36.09305,8.574132 -49.92428,23.198626 -12.4007,13.111847 -17.71682,23.01134 -21.06271,39.222194 -3.92556,19.019231 0.31744,41.451491 12.32983,65.185741 2.55115,5.04062 13.93555,23.52363 25.29864,41.07335 11.3631,17.54974 26.15248,42.49186 32.86522,55.427 l 12.20505,23.51842 -4.82655,3.76047 c -2.65463,2.06825 -17.79588,12.72877 -33.64726,23.69003 -15.85134,10.96125 -29.20662,20.22404 -29.67843,20.584 -3.6285,2.76844 5.50122,2.13071 30.94058,-2.1613 48.70514,-8.21725 48.66832,-8.21432 49.96897,-3.97532 7.07303,23.05158 9.36492,68.33612 4.40238,86.98383 -10.99234,41.30556 -44.9516,74.89187 -86.43063,85.48148 -15.00575,3.83101 -43.7617,3.85098 -57.89021,0.0403 z"
id="path9138" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 3.9 KiB

View file

@ -1,74 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="512"
height="512"
viewBox="0 0 512 512"
version="1.1"
id="svg5"
inkscape:export-filename="Parch_Profile_BW1.png"
inkscape:export-xdpi="192"
inkscape:export-ydpi="192"
inkscape:version="1.2.1 (9c6d41e410, 2022-07-14)"
sodipodi:docname="Parch_Profile_BW1.svg"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview7"
pagecolor="#505050"
bordercolor="#ffffff"
borderopacity="1"
inkscape:showpageshadow="0"
inkscape:pageopacity="0"
inkscape:pagecheckerboard="1"
inkscape:deskcolor="#505050"
inkscape:document-units="px"
showgrid="false"
inkscape:zoom="0.98373095"
inkscape:cx="142.31534"
inkscape:cy="249.05184"
inkscape:window-width="1366"
inkscape:window-height="705"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:current-layer="layer1" />
<defs
id="defs2">
<linearGradient
inkscape:collect="always"
id="linearGradient962">
<stop
style="stop-color:#090180;stop-opacity:1;"
offset="0"
id="stop958" />
<stop
style="stop-color:#0081c0;stop-opacity:1;"
offset="1"
id="stop960" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient962"
id="linearGradient964"
x1="203.53801"
y1="319.10983"
x2="282.91855"
y2="239.35014"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(2.1450176,0,0,2.1450176,-293.12452,-293.12452)" />
</defs>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1">
<path
style="fill:url(#linearGradient964);fill-opacity:1;stroke:none;stroke-width:5.07492;stroke-linecap:round;stroke-dasharray:none;stroke-opacity:1"
d="M 251.27428,489.6492 C 210.96584,478.77726 173.38881,444.52155 143.46809,391.37169 l -6.65397,-11.81985 7.2211,-12.88357 c 10.23231,-18.25614 29.13435,-42.79729 49.51852,-64.29157 9.63386,-10.15852 17.27136,-18.71484 16.9722,-19.01399 -0.29915,-0.29915 -19.39066,11.94949 -42.42562,27.21918 -23.03489,15.26973 -42.62023,27.76313 -43.52294,27.76313 -1.78592,0 -4.63937,-9.51177 -8.45795,-28.194 -1.3433,-6.57199 -2.40903,-27.23432 -2.36826,-45.91624 0.0813,-37.1628 4.02817,-62.01124 14.4647,-91.06027 6.67254,-18.57249 20.7197,-46.86718 23.26758,-46.86718 1.04392,0 15.51965,6.48465 32.16825,14.41032 16.64862,7.92568 31.16749,14.41033 32.26423,14.41033 1.09676,0 -4.8203,-7.45155 -13.14898,-16.55901 -8.32868,-9.10747 -19.64852,-21.61906 -25.15517,-27.80351 l -10.01206,-11.244511 17.21726,-17.67423 c 29.46484,-30.246911 62.60028,-49.309034 102.01792,-58.68877 15.4592,-3.678662 22.37625,-4.159554 46.95089,-3.264166 15.85136,0.577554 33.45254,2.257674 39.11374,3.733625 l 10.29309,2.683495 -16.46894,1.309536 c -21.28328,1.692403 -36.09305,8.574132 -49.92428,23.198626 -12.4007,13.111847 -17.71682,23.01134 -21.06271,39.222194 -3.92556,19.019231 0.31744,41.451491 12.32983,65.185741 2.55115,5.04062 13.93555,23.52363 25.29864,41.07335 11.3631,17.54974 26.15248,42.49186 32.86522,55.427 l 12.20505,23.51842 -4.82655,3.76047 c -2.65463,2.06825 -17.79588,12.72877 -33.64726,23.69003 -15.85134,10.96125 -29.20662,20.22404 -29.67843,20.584 -3.6285,2.76844 5.50122,2.13071 30.94058,-2.1613 48.70514,-8.21725 48.66832,-8.21432 49.96897,-3.97532 7.07303,23.05158 9.36492,68.33612 4.40238,86.98383 -10.99234,41.30556 -44.9516,74.89187 -86.43063,85.48148 -15.00575,3.83101 -43.7617,3.85098 -57.89021,0.0403 z"
id="path9138" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 3.9 KiB

View file

@ -1,68 +0,0 @@
import io.calamares.core 1.0
import io.calamares.ui 1.0
import QtQuick 2.10
import QtQuick.Controls 2.10
import QtQuick.Layouts 1.3
import org.kde.kirigami 2.7 as Kirigami
import "."
ResponsiveBase
{
id: control
title: qsTr("Finished")
subtitle: qsTr("Installation process has finished")
message: qsTr("<p>A full log of the install is available as installation.log in the home directory of the Live user.<br/>
This log is copied to /var/log/installation.log of the target system.</p>")
icon.source: "cala-qml-finished"
stackView.initialItem: Item
{
Column
{
width: parent.width * 0.7
anchors.centerIn: parent
spacing: Kirigami.Units.largeSpacing * 3
Label
{
width: parent.width
horizontalAlignment: Text.AlignHCenter
wrapMode: Text.Wrap
text: qsTr("%1 has been installed on your computer.<br/>
You may now restart into your new system, or continue using the Live environment.").arg(Branding.string(Branding.ProductName))
}
Row
{
anchors.horizontalCenter: parent.horizontalCenter
spacing: 6
Button {
text: qsTr("Close Installer")
icon.name: "application-exit"
onClicked: { ViewManager.quit(); }
}
Button {
text: qsTr("Restart System")
icon.name: "document-revert"
onClicked: { config.doRestart(true); }
}
}
}
}
function onActivate()
{
}
function onLeave()
{
}
}

View file

@ -1,173 +0,0 @@
/* === This file is part of Calamares - <https://calamares.io> ===
*
* SPDX-FileCopyrightText: 2020 Anke Boersma <demm@kaosx.us>
* SPDX-License-Identifier: GPL-3.0-or-later
*
* Calamares is Free Software: see the License-Identifier above.
*
*/
import io.calamares.ui 1.0
import QtQuick 2.7
import QtQuick.Controls 2.2
import QtQuick.Layouts 1.3
import org.kde.kirigami 2.7 as Kirigami
Item {
width: parent.width
height: parent.height
focus: true
MouseArea {
anchors.fill: parent
}
Rectangle {
id: textArea
x: 28
y: 14
anchors.fill: parent
Kirigami.Theme.backgroundColor: Kirigami.Theme.backgroundColor
Column {
id: languages
x: 130
y: 40
Rectangle {
width: 250
height: 140
color: "#d3d3d3"
Text {
anchors.top: parent.top
width: 240
wrapMode: Text.WordWrap
text: qsTr("<h1>Languages</h1> </br>
The system locale setting affects the language and character set for some command line user interface elements. The current setting is <strong>%1</strong>.").arg(config.currentLanguageCode)
font.pointSize: 10
}
}
Rectangle {
width: 250
height: 300
ScrollView {
id: scroll1
anchors.fill: parent
contentHeight: 800
clip: true
ListView {
id: list1
focus: true
model: config.supportedLocales
currentIndex: -1
highlight: Rectangle {
color: Kirigami.Theme.highlightColor
}
delegate: Text {
text: modelData
MouseArea {
hoverEnabled: true
anchors.fill: parent
cursorShape: Qt.PointingHandCursor
onEntered: {
color: "#0000ff"
}
onClicked: {
list1.currentIndex = index
}
}
}
onCurrentItemChanged: { config.currentLanguageCode = model[currentIndex] } /* This works because model is a stringlist */
}
}
}
}
Column {
id: lc_numeric
x: 430
y: 40
Rectangle {
width: 250
height: 140
color: "#d3d3d3"
Text {
anchors.top: parent.top
width: 240
wrapMode: Text.WordWrap
text: qsTr("<h1>Locales</h1> </br>
The system locale setting affects the numbers and dates format. The current setting is <strong>%1</strong>.").arg(config.currentLCCode)
font.pointSize: 10
}
}
Rectangle {
width: 250
height: 300
ScrollView {
id: scroll2
anchors.fill: parent
contentHeight: 800
clip: true
ListView {
id: list2
width: 180; height: 200
focus: true
model: config.supportedLocales
currentIndex: -1
highlight: Rectangle {
color: Kirigami.Theme.highlightColor
}
delegate: Text {
text: modelData
MouseArea {
hoverEnabled: true
anchors.fill: parent
cursorShape: Qt.PointingHandCursor
onClicked: {
list2.currentIndex = index
}
}
}
onCurrentItemChanged: { config.currentLCCode = model[currentIndex]; } /* This works because model is a stringlist */
}
}
}
}
ToolButton {
id: toolButton
x: 19
y: 29
width: 105
height: 48
text: qsTr("Back")
hoverEnabled: true
onClicked: load.source = ""
Image {
id: image1
x: 0
y: 13
width: 22
height: 22
source: "img/chevron-left-solid.svg"
fillMode: Image.PreserveAspectFit
}
}
}
}

View file

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 46 KiB

View file

@ -1,121 +0,0 @@
import io.calamares.ui 1.0
import QtQuick 2.10
import QtQuick.Controls 2.10
import QtQuick.Layouts 1.3
import org.kde.kirigami 2.7 as Kirigami
ResponsiveBase
{
id: control
title: stackView.currentItem.title
subtitle: stackView.currentItem.subtitle
icon.source: stackView.currentItem.icon
stackView.initialItem: ListViewTemplate
{
id: _keyboardModelListView
property string title: qsTr("Keyboard Model")
property string subtitle: qsTr("Pick your preferred keyboard model or use the default one based on the detected hardware")
property string icon : "cala-qml-keyboard-model"
currentIndex: model.currentIndex
model: config.keyboardModelsModel
delegate: ListItemDelegate
{
id: _delegate
label1.text: model.label
onClicked:
{
_keyboardModelListView.model.currentIndex = index
control.stackView.push(_keyboardLayoutsComponent)
}
}
Button
{
Layout.fillWidth: true
text: qsTr("Layouts")
icon.name: "go-previous"
onClicked: control.stackView.push(_keyboardLayoutsComponent)
}
}
Component
{
id: _keyboardLayoutsComponent
ListViewTemplate
{
id: _layoutsListView
property string title: qsTr("Keyboard Layout")
property string subtitle: config.prettyStatus
property string icon : "cala-qml-keyboard-layout"
currentIndex: model.currentIndex
model: config.keyboardLayoutsModel
delegate: ListItemDelegate
{
id: _delegate
label1.text: model.label
onClicked:
{
_layoutsListView.model.currentIndex = index
_layoutsListView.positionViewAtIndex(index, ListView.Center)
control.stackView.push(_keyboardVariantsComponent)
}
}
TextField
{
placeholderText: qsTr("Test your keyboard")
Layout.fillWidth: true
Layout.alignment: Qt.AlignCenter
}
Button
{
Layout.fillWidth: true
icon.name: "go-next"
text: qsTr("Variants")
onClicked: control.stackView.push(_keyboardVariantsComponent)
}
}
}
Component
{
id: _keyboardVariantsComponent
ListViewTemplate
{
id: _variantsListView
property string title: qsTr("Keyboard Layout Variant")
property string subtitle: config.prettyStatus
property string icon : "cala-qml-keyboard-layout-variant"
currentIndex: model.currentIndex
model: config.keyboardVariantsModel
delegate: ListItemDelegate
{
id: _delegate
label1.text: model.label
onClicked:
{
_variantsListView.model.currentIndex = index
_variantsListView.positionViewAtIndex(index, ListView.Center)
}
}
}
}
}

View file

@ -1,89 +0,0 @@
import io.calamares.ui 1.0
import QtQuick 2.10
import QtQuick.Controls 2.10
import QtQuick.Layouts 1.3
import org.kde.kirigami 2.7 as Kirigami
import "."
ResponsiveBase
{
id: control
title: stackView.currentItem.title
subtitle: stackView.currentItem.subtitle
message: stackView.currentItem.message
icon.source: stackView.currentItem.icon
property string currentRegion
property string currentZone
stackView.initialItem: ListViewTemplate
{
id: _regionListView
property string title: qsTr("Region")
property string subtitle: qsTr("Pick your preferred region or use the default one based on your current location")
property string message: qsTr("Select your preferred zone within your location to continue with the installation")
property string icon : "cala-qml-region"
model: config.regionModel
currentIndex : -1
delegate: ListItemDelegate
{
id: _delegate
label1.text: model.name
onClicked:
{
_regionListView.currentIndex = index
control.currentRegion = model.name
config.regionalZonesModel.region = control.currentRegion
control.stackView.push(_zonesListComponent)
}
}
Button
{
Layout.fillWidth: true
text: qsTr("Timezones")
icon.name: "go-previous"
onClicked: control.stackView.push(_zonesListComponent)
}
}
Component
{
id: _zonesListComponent
ListViewTemplate
{
id: _zonesListView
property string title: qsTr("Timezone")
property string subtitle: config.prettyStatus
property string message: ""
property string icon : "cala-qml-timezone"
model: config.regionalZonesModel
currentIndex : -1
delegate: ListItemDelegate
{
id: _delegate
label1.text: model.name
onClicked:
{
_zonesListView.currentIndex = index
control.currentZone = model.name
_zonesListView.listView.positionViewAtIndex(index, ListView.Center)
config.setCurrentLocation(control.currentRegion, control.currentZone)
}
}
}
}
}

View file

Before

Width:  |  Height:  |  Size: 111 KiB

After

Width:  |  Height:  |  Size: 111 KiB

View file

@ -1,8 +1,8 @@
import QtQuick 2.0;
import QtQuick.Layouts 1.3
import QtQuick.Controls 2.2
import QtQuick 2.0;
import calamares.slideshow 1.0; import calamares.slideshow 1.0;
import io.calamares.ui 1.0 // Calamares internals: Branding
Presentation Presentation
{ {
@ -10,136 +10,44 @@ Presentation
Timer { Timer {
interval: 5000 interval: 5000
running: false running: presentation.activatedInCalamares
repeat: true repeat: true
onTriggered: presentation.goToNextSlide() onTriggered: presentation.goToNextSlide()
} }
Image { function onActivate() { }
id: background function onLeave() { }
source: "calamares_background.svg"
Rectangle {
id: mybackground
anchors.fill: parent anchors.fill: parent
color: Branding.styleString(Branding.SidebarBackground)
z: -1
} }
Image { ImageSlide {
id: image src: "slide01.png"
source: "calamares_install_image.svg"
width: 256
height: 256
fillMode: Image.PreserveAspectFit
anchors.left: parent.horizontalCenter
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
} }
Slide { ImageSlide {
src: "slide02.png"
ColumnLayout {
anchors.leftMargin: 18
anchors.left: parent.left
anchors.right: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
Label {
Layout.fillWidth: true
text: qsTr("Welcome to the Parch Linux!")
font.pixelSize: 22
font.bold: true
color: "white"
}
Rectangle {
height: 3
width: 24
radius: 2
color: "white"
}
Text {
Layout.fillWidth: true
Layout.topMargin: 16
font.pixelSize: 12
color: "white"
text: qsTr("Yet another distro based on Arch!")
wrapMode: Text.WordWrap
}
}
} }
Slide { ImageSlide {
src: "slide03.png"
ColumnLayout {
anchors.leftMargin: 18
anchors.left: parent.left
anchors.right: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
Label {
Layout.fillWidth: true
text: qsTr("Everything you need to get started.")
font.pixelSize: 22
font.bold: true
color: "white"
}
Rectangle {
height: 3
width: 24
radius: 2
color: "white"
}
Text {
Layout.fillWidth: true
Layout.topMargin: 16
font.pixelSize: 12
color: "white"
text: qsTr("Parch is a complete Operating System that ships the essential apps and services for the daily use: office applications, PDF reader, image editor")
wrapMode: Text.WordWrap
}
}
} }
Slide { ImageSlide {
src: "slide04.png"
ColumnLayout {
anchors.leftMargin: 18
anchors.left: parent.left
anchors.right: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
Label {
Layout.fillWidth: true
text: qsTr("Explore a universe of apps with AUR.")
font.pixelSize: 22
font.bold: true
color: "white"
}
Rectangle {
height: 3
width: 24
radius: 2
color: "white"
}
Text {
Layout.fillWidth: true
Layout.topMargin: 16
font.pixelSize: 12
color: "white"
text: qsTr("Thanks for using Parch Linux")
wrapMode: Text.WordWrap
}
}
} }
ImageSlide {
src: "slide05.png"
}
ImageSlide {
src: "slide06.png"
}
} }

View file

Before

Width:  |  Height:  |  Size: 327 KiB

After

Width:  |  Height:  |  Size: 327 KiB

View file

Before

Width:  |  Height:  |  Size: 625 KiB

After

Width:  |  Height:  |  Size: 625 KiB

View file

Before

Width:  |  Height:  |  Size: 687 KiB

After

Width:  |  Height:  |  Size: 687 KiB

View file

Before

Width:  |  Height:  |  Size: 1,014 KiB

After

Width:  |  Height:  |  Size: 1,014 KiB

View file

Before

Width:  |  Height:  |  Size: 1.1 MiB

After

Width:  |  Height:  |  Size: 1.1 MiB

View file

Before

Width:  |  Height:  |  Size: 749 KiB

After

Width:  |  Height:  |  Size: 749 KiB

View file

Before

Width:  |  Height:  |  Size: 111 KiB

After

Width:  |  Height:  |  Size: 111 KiB

View file

@ -1,47 +0,0 @@
import io.calamares.core 1.0
import io.calamares.ui 1.0
import QtQuick 2.10
import QtQuick.Controls 2.10
import org.mauikit.controls 1.3 as Maui
import org.kde.kirigami 2.7 as Kirigami
import "."
ResponsiveBase
{
id: control
title: qsTr("Summary")
subtitle: qsTr("Summary of the installation")
message: qsTr("<p>Review the steps that will be taken before the system installation starts.</p>")
icon.source: "cala-qml-summary"
stackView.initialItem: ListViewTemplate
{
currentIndex: -1
model: config.summaryModel
delegate: Maui.ItemDelegate
{
id: _delegate
width: ListView.view.width
height: _template.implicitHeight + Maui.Style.space.medium
Maui.ListItemTemplate
{
id: _template
anchors.fill: parent
anchors.margins: Maui.Style.space.medium
iconSource: "documentinfo"
iconSizeHint: 32
headerSizeHint: iconSizeHint
label1.text: model.title
label2.text: model.message
label2.wrapMode: Text.Wrap
label2.textFormat: Text.AutoText
}
}
}
}

View file

@ -1,264 +0,0 @@
import io.calamares.ui 1.0
import QtQuick 2.10
import QtQuick.Controls 2.10
import QtQuick.Layouts 1.3
import QtGraphicalEffects 1.0
import QtQuick.Window 2.3
import "."
import org.kde.kirigami 2.7 as Kirigami
ResponsiveBase
{
id: control
// nextButton.enabled: config.isNextEnabled
title: qsTr("Users")
subtitle: qsTr("Pick your user name and credentials to login and perform admin tasks")
message: config.status.message
icon.source: "cala-qml-user"
stackView.initialItem: ScrollView
{
id: _userPage
contentWidth: availableWidth
padding: 0
background: Rectangle
{
color: Qt.lighter(control.Kirigami.Theme.backgroundColor)
radius: 5
opacity: 0.5
}
Flickable
{
contentHeight: _formLayout.implicitHeight
Column
{
id: _formLayout
width: parent.width
height: parent.height
spacing: Kirigami.Units.smallSpacing
ItemSection
{
width: parent.width
title: qsTr("What is your name?")
TextField
{
id: _userNameField
width: parent.width
enabled: config.isEditable("fullName")
placeholderText: qsTr("Your Full Name")
text: config.fullName
onTextChanged: config.setFullName(text)
background: Rectangle
{
color: Kirigami.Theme.backgroundColor
radius: 5
opacity: 0.5
border.color: _userNameField.text.length ? Kirigami.Theme.backgroundColor : ( config.fullNameChanged ? Kirigami.Theme.backgroundColor : Kirigami.Theme.negativeTextColor)
}
}
}
ItemSection
{
width: parent.width
title: qsTr("What name do you want to use to log in?")
subtitle: qsTr("If more than one person will use this computer, you can create multiple accounts after installation.")
TextField
{
id: _userLoginField
enabled: config.isEditable("loginName")
width: parent.width
placeholderText: qsTr("Login Name")
text: config.loginName
onTextChanged: config.setLoginName(text)
background: Rectangle
{
color: Kirigami.Theme.backgroundColor
radius: 5
opacity: 0.5
border.color: _userLoginField.text.length ? Kirigami.Theme.backgroundColor : (config.loginNameStatusChanged ? Kirigami.Theme.backgroundColor : Kirigami.Theme.negativeTextColor)
}
}
}
ItemSection
{
width: parent.width
title: qsTr("What is the name of this computer?")
subtitle: qsTr("This name will be used if you make the computer visible to others on a network.")
TextField
{
id: _hostName
width: parent.width
placeholderText: qsTr("Computer Name")
text: config.hostName
onTextChanged: config.setHostName(text)
background: Rectangle
{
color: Kirigami.Theme.backgroundColor
radius: 5
opacity: 0.5
border.color: _hostName.text.length ? Kirigami.Theme.backgroundColor : ( config.hostNameStatusChanged ? Kirigami.Theme.backgroundColor : Kirigami.Theme.negativeTextColor)
}
}
}
ItemSection
{
width: parent.width
title: qsTr("Choose a password to keep your account safe.")
subtitle: qsTr("Enter the same password twice, so that it can be checked for typing errors. A good password will contain a mixture of letters, numbers and punctuation, should be at least eight characters long, and should be changed at regular intervals.")
TextField
{
id: _passwordField
width: parent.width
placeholderText: qsTr("Password")
text: config.userPassword
echoMode: TextInput.Password
passwordMaskDelay: 300
inputMethodHints: Qt.ImhNoAutoUppercase
onTextChanged: config.setUserPassword(text)
background: Rectangle
{
color: Kirigami.Theme.backgroundColor
radius: 5
opacity: 0.5
border.color: ( config.userPasswordStatusChanged ? Kirigami.Theme.backgroundColor : Kirigami.Theme.negativeTextColor)
}
}
TextField
{
id: _verificationPasswordField
width: parent.width
placeholderText: qsTr("Repeat Password")
text: config.userPasswordSecondary
onTextChanged: config.setUserPasswordSecondary(text)
echoMode: TextInput.Password
passwordMaskDelay: 300
inputMethodHints: Qt.ImhNoAutoUppercase
background: Rectangle
{
color: Kirigami.Theme.backgroundColor
radius: 5
opacity: 0.5
border.color: config.userPasswordSecondaryChanged ? Kirigami.Theme.backgroundColor : Kirigami.Theme.negativeTextColor
}
}
CheckBox
{
visible: config.writeRootPassword
text: qsTr("Reuse user password as root password")
checked: config.reuseUserPasswordForRoot
onCheckedChanged: config.setReuseUserPasswordForRoot(checked)
}
}
ItemSection
{
width: parent.width
visible: !config.reuseUserPasswordForRoot
title: qsTr("Choose a root password to keep your account safe.")
TextField
{
id: _rootPasswordField
width: parent.width
placeholderText: qsTr("Root Password")
echoMode: TextInput.Password
passwordMaskDelay: 300
inputMethodHints: Qt.ImhNoAutoUppercase
text: config.rootPassword
onTextChanged: config.setRootPassword(text)
background: Rectangle
{
color: Kirigami.Theme.backgroundColor
radius: 5
opacity: 0.5
border.color: _rootPasswordField.text.length ? Kirigami.Theme.backgroundColor : ( config.rootPasswordReady ? Kirigami.Theme.backgroundColor : Kirigami.Theme.negativeTextColor)
}
}
TextField
{
id: _verificationRootPasswordField
width: parent.width
placeholderText: qsTr("Repeat Root Password")
echoMode: TextInput.Password
passwordMaskDelay: 300
inputMethodHints: Qt.ImhNoAutoUppercase
text: config.rootPasswordSecondary
onTextChanged: config.setRootPasswordSecondary(text)
background: Rectangle
{
color: Kirigami.Theme.backgroundColor
radius: 5
opacity: 0.5
border.color: _verificationRootPasswordField.text.length ? Kirigami.Theme.backgroundColor : ( config.rootPasswordReady ? Kirigami.Theme.backgroundColor : Kirigami.Theme.negativeTextColor)
}
}
}
ItemSection
{
width: parent.width
title: qsTr("More options.")
CheckBox
{
visible: config.permitWeakPasswords
text: qsTr("Validate passwords quality")
checked: config.requireStrongPasswords
onCheckedChanged: config.setRequireStrongPasswords(checked)
}
CheckBox
{
text: qsTr("Log in automatically without asking for the password")
checked: config.doAutoLogin
onCheckedChanged: config.setAutoLogin(checked)
}
}
}
}
}
}

View file

@ -1,175 +0,0 @@
import io.calamares.ui 1.0
import io.calamares.core 1.0
import QtQuick 2.14
import QtQuick.Controls 2.14
import QtQuick.Layouts 1.3
import org.kde.kirigami 2.7 as Kirigami
import "."
ResponsiveBase
{
id: control
title: stackView.currentItem.title
subtitle: stackView.currentItem.subtitle
message: stackView.currentItem.message
icon.source: stackView.currentItem.icon
stackView.initialItem: ListViewTemplate
{
id: _requirementsList
property string title: qsTr("Welcome to ") + Branding.string(Branding.ProductName)
property string subtitle: config.genericWelcomeMessage
property string message: config.requirementsModel.satisfiedRequirements ? "All requirements have been satisfied." : qsTr("<p>Please ensure this computer has enough storage, RAM, and a working Internet connection. %1.<br/>
Setup can continue, but some features might be disabled.</p>").arg(Branding.string(Branding.VersionedName))
property string icon : Branding.imagePath(Branding.ProductWelcome)
model: config.unsatisfiedRequirements
delegate: Control
{
id: _delegate
background: Rectangle
{
color: model.satisfied ? Kirigami.Theme.positiveTextColor : Kirigami.Theme.negativeTextColor
opacity: 0.2
}
width: ListView.view.width
height: 72
RowLayout
{
id: _template
anchors.fill: parent
Item
{
Layout.alignment: Qt.AlignCenter
implicitWidth: 48
implicitHeight: 48
Kirigami.Icon
{
source: model.satisfied ? "checkmark" : (model.mandatory ? "error" : "emblem-info")
height: 22
width: 22
anchors.centerIn: parent
}
}
ColumnLayout
{
Layout.fillWidth: true
Layout.alignment: Qt.AlignCenter
Layout.margins: Kirigami.Units.smallSpacing
spacing : 0
Label
{
Layout.fillWidth: true
text: model.name
font.bold: true
}
Label
{
Layout.fillWidth: true
text: !model.satisfied ? model.negatedText : model.details
wrapMode: Text.Wrap
}
}
}
}
RowLayout
{
Layout.fillWidth: true
Layout.preferredHeight: 64
spacing: Kirigami.Units.largeSpacing* 2
Button
{
Layout.fillWidth: true
text: "About"
icon.name: "documentinfo"
Kirigami.Theme.backgroundColor: Qt.rgba(Kirigami.Theme.backgroundColor.r, Kirigami.Theme.backgroundColor.g, Kirigami.Theme.backgroundColor.b, 0.4)
Kirigami.Theme.textColor: "#fff"
visible: Branding.string(Branding.ProductUrl).length
onClicked: Qt.openUrlExternally(Branding.string(Branding.ProductUrl))
}
Button
{
Layout.fillWidth: true
text: qsTr("Support")
icon.name: "help-contents"
Kirigami.Theme.backgroundColor: Qt.rgba(Kirigami.Theme.backgroundColor.r, Kirigami.Theme.backgroundColor.g, Kirigami.Theme.backgroundColor.b, 0.4)
Kirigami.Theme.textColor: "#fff"
visible: Branding.string(Branding.SupportUrl).length
onClicked: Qt.openUrlExternally(Branding.string(Branding.SupportUrl))
}
Button
{
Layout.fillWidth: true
text: qsTr("Known issues")
icon.name: "tools-report-bug"
Kirigami.Theme.backgroundColor: Qt.rgba(Kirigami.Theme.backgroundColor.r, Kirigami.Theme.backgroundColor.g, Kirigami.Theme.backgroundColor.b, 0.4)
Kirigami.Theme.textColor: "#fff"
visible: Branding.string(Branding.KnownIssuesUrl).length
onClicked: Qt.openUrlExternally(Branding.string(Branding.KnownIssuesUrl))
}
Button
{
Layout.fillWidth: true
text: qsTr("Release notes")
icon.name: "document-edit"
Kirigami.Theme.backgroundColor: Qt.rgba(Kirigami.Theme.backgroundColor.r, Kirigami.Theme.backgroundColor.g, Kirigami.Theme.backgroundColor.b, 0.4)
Kirigami.Theme.textColor: "#fff"
visible: Branding.string(Branding.ReleaseNotesUrl).length
onClicked: Qt.openUrlExternally(Branding.string(Branding.ReleaseNotesUrl))
}
}
Button
{
Layout.fillWidth: true
text: qsTr("Language")
onClicked: control.stackView.push(_langComponent)
enabled: true
}
}
Component
{
id: _langComponent
ListViewTemplate
{
id: _langList
property string title : qsTr("Language")
property string subtitle: qsTr("Select your preferred language to continue with the installation")
property string icon : "cala-qml-language"
currentIndex: config.localeIndex
model: config.languagesModel
delegate: ListItemDelegate
{
id: _delegate
label1.text: model.label
label2.text: model.englishLabel
onClicked: config.localeIndex = index
}
}
}
}

View file

@ -55,7 +55,7 @@ sequence:
- finished - finished
branding: parchiso branding: parchlinux
prompt-install: false prompt-install: false