Captura el look de KDE (Layan): rc files, gtk theming, splash
kdeglobals/kwinrc/plasmarc/plasmashellrc/plasma-appletsrc/konsolerc/ dolphinrc/katerc/ksplashrc + gtk-3.0/4.0 settings.ini, capturados con shared/capture-kde.sh de arch-setup. El tema Layan/Tela/cursores en sí va por AUR (plasma6-themes-layan-git, tela-icon-theme, layan-cursor-theme-git) en kde/setup.sh, no aquí; solo se vendoriza el splash Animated-Abstract-Cube, que no tiene paquete AUR. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
257e919594
commit
b363963108
+124
@@ -0,0 +1,124 @@
|
||||
|
||||
/*
|
||||
* Copyright 2014 Marco Martin <mart@kde.org>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2,
|
||||
* or (at your option) any later version, as published by the Free
|
||||
* Software Foundation
|
||||
*
|
||||
* This program 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 this program; if not, write to the
|
||||
* Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
import QtQuick 2.5
|
||||
import QtQuick.Window 2.2
|
||||
|
||||
AnimatedImage {
|
||||
id: root
|
||||
source: "images/Animated-Abstract-Cube.gif"
|
||||
property int stage
|
||||
|
||||
onStageChanged: {
|
||||
if (stage == 2) {
|
||||
introAnimation.running = true;
|
||||
} else if (stage == 5) {
|
||||
introAnimation.target = busyIndicator;
|
||||
introAnimation.from = 1;
|
||||
introAnimation.to = 0;
|
||||
introAnimation.running = true;
|
||||
}
|
||||
}
|
||||
|
||||
Text {
|
||||
id: date
|
||||
text:Qt.formatDateTime(new Date(),"dd/MM/yyyy")
|
||||
font.pointSize: 35
|
||||
color: "#a0a0a0"
|
||||
opacity:0.85
|
||||
font { family: "NotoSans MED"; weight: Font.Light ;capitalization: Font.Capitalize}
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
y: (parent.height - height) / 1.1
|
||||
}
|
||||
Item {
|
||||
id: content
|
||||
anchors.fill: parent
|
||||
opacity: 0
|
||||
TextMetrics {
|
||||
id: units
|
||||
text: "M"
|
||||
property int gridUnit: boundingRect.height
|
||||
property int largeSpacing: units.gridUnit
|
||||
property int smallSpacing: Math.max(2, gridUnit/4)
|
||||
}
|
||||
|
||||
Image {
|
||||
id: logo
|
||||
//match SDDM/lockscreen avatar positioning
|
||||
property real size: units.gridUnit * 8
|
||||
|
||||
anchors.centerIn: parent
|
||||
|
||||
source: "images/plasma.svgz"
|
||||
|
||||
sourceSize.width: size
|
||||
sourceSize.height: size
|
||||
}
|
||||
|
||||
Image {
|
||||
id: busyIndicator
|
||||
//in the middle of the remaining space
|
||||
y: parent.height - (parent.height - logo.y) / 2 - height/2
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
source: "images/739.svg"
|
||||
|
||||
sourceSize.height: units.gridUnit * 2
|
||||
sourceSize.width: units.gridUnit * 2
|
||||
RotationAnimator on rotation {
|
||||
id: rotationAnimator
|
||||
from: 0
|
||||
to: 360
|
||||
duration: 1500
|
||||
loops: Animation.Infinite
|
||||
}
|
||||
}
|
||||
Row {
|
||||
spacing: units.smallSpacing*2
|
||||
anchors {
|
||||
bottom: parent.bottom
|
||||
right: parent.right
|
||||
margins: units.gridUnit
|
||||
}
|
||||
Text {
|
||||
color: "#eff0f1"
|
||||
// Work around Qt bug where NativeRendering breaks for non-integer scale factors
|
||||
// https://bugreports.qt.io/browse/QTBUG-67007
|
||||
renderType: Screen.devicePixelRatio % 1 !== 0 ? Text.QtRendering : Text.NativeRendering
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
text: i18ndc("plasma_lookandfeel_org.kde.lookandfeel", "This is the first text the user sees while starting in the splash screen, should be translated as something short, is a form that can be seen on a product. Plasma is the project name so shouldn't be translated.", "Plasma made by KDE")
|
||||
}
|
||||
Image {
|
||||
source: "images/kde.svgz"
|
||||
sourceSize.height: units.gridUnit * 2
|
||||
sourceSize.width: units.gridUnit * 2
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
OpacityAnimator {
|
||||
id: introAnimation
|
||||
running: false
|
||||
target: content
|
||||
from: 0
|
||||
to: 1
|
||||
duration: 1000
|
||||
easing.type: Easing.InOutQuad
|
||||
}
|
||||
}
|
||||
BIN
Binary file not shown.
|
After Width: | Height: | Size: 2.9 MiB |
BIN
Binary file not shown.
|
After Width: | Height: | Size: 2.9 MiB |
+10
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
|
||||
<!-- Created using Karbon, part of Calligra: http://www.calligra.org/karbon -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="38.4pt" height="38.4pt">
|
||||
<defs/>
|
||||
<g id="layer0">
|
||||
<path id="shape0" transform="translate(0.5, 0.5)" fill="#000000" d="M23.7 47C10.6 47 0 36.5 0 23.5C0 10.5 10.6 0 23.7 0C36.8 0 47.4 10.5 47.4 23.5C47.4 36.5 36.8 47 23.7 47ZM23.7 3C12.3 3 3 12.2 3 23.5C3 34.8 12.3 44 23.7 44C35.1 44 44.4 34.8 44.4 23.5C44.4 12.2 35.1 3 23.7 3Z"/>
|
||||
<path id="shape1" transform="translate(0.5, 22.5)" fill="#800000" d="M23.7 25C10.6 25 0 14.5 0 1.5C0 0.7 0.7 0 1.5 0C2.3 0 3 0.7 3 1.5C3 12.8 12.3 22 23.7 22C24.5 22 25.2 22.7 25.2 23.5C25.2 24.3 24.5 25 23.7 25Z"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 883 B |
Reference in New Issue
Block a user