Коммит 03b55e37 создал по автору Проскурнев Артем Сергеевич's avatar Проскурнев Артем Сергеевич
Просмотр файлов
владелец 54ed034d
......@@ -7,9 +7,6 @@ set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS Plasma)
find_package(KF5I18n CONFIG REQUIRED)
ki18n_install(po)
include(KDEInstallDirs)
include(KDECMakeSettings)
include(KDECompilerSettings NO_POLICY_SCOPE)
......@@ -25,7 +22,8 @@ include(KDEPackageAppTemplates)
include_directories("${CMAKE_CURRENT_BINARY_DIR}")
plasma_install_package(org.rosa.fresh.desktop org.rosa.fresh.desktop look-and-feel lookandfeel)
plasma_install_package(org.kde.rosalight.desktop org.kde.rosalight.desktop look-and-feel lookandfeel)
plasma_install_package(org.kde.rosadark.desktop org.kde.rosadark.desktop look-and-feel lookandfeel)
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
[kdeglobals][General]
ColorScheme=ROSADark
[kdeglobals][Icons]
Theme=rosa5-dark
[plasmarc][Theme]
name=ROSA-Dark
[Wallpaper]
Image=ROSA-Dark
[KSplash]
Theme=org.kde.rosadark.desktop
/*
* 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
import org.kde.plasma.core 2.0 as PlasmaCore
Rectangle {
id: root
Image {
source: "/usr/share/wallpapers/ROSA-dark-default.svg"
anchors.centerIn: parent
fillMode: Image.PreserveAspectCrop
height: parent.height
width: parent.width
}
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;
}
}
Item {
id: content
anchors.fill: parent
opacity: 0
TextMetrics {
id: units
text: "M"
property int gridUnit: boundingRect.height
property int largeSpacing: PlasmaCore.Units.gridUnit
property int smallSpacing: Math.max(2, gridUnit/4)
}
Image {
id: logo
//match SDDM/lockscreen avatar positioning
property real size: PlasmaCore.Units.gridUnit * 8
anchors.centerIn: parent
source: "images/plasma.svgz"
sourceSize.width: size
sourceSize.height: size
}
// TODO: port to PlasmaComponents3.BusyIndicator
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/busywidget.svgz"
sourceSize.height: PlasmaCore.Units.gridUnit * 2
sourceSize.width: PlasmaCore.Units.gridUnit * 2
RotationAnimator on rotation {
id: rotationAnimator
from: 0
to: 360
// Not using a standard duration value because we don't want the
// animation to spin faster or slower based on the user's animation
// scaling preferences; it doesn't make sense in this context
duration: 2000
loops: Animation.Infinite
// Don't want it to animate at all if the user has disabled animations
running: PlasmaCore.Units.longDuration > 1
}
}
Row {
spacing: PlasmaCore.Units.smallSpacing*2
anchors {
bottom: parent.bottom
right: parent.right
margins: PlasmaCore.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: PlasmaCore.Units.gridUnit * 2
sourceSize.width: PlasmaCore.Units.gridUnit * 2
}
}
}
OpacityAnimator {
id: introAnimation
running: false
target: content
from: 0
to: 1
duration: PlasmaCore.Units.veryLongDuration * 2
easing.type: Easing.InOutQuad
}
}
[Desktop Entry]
Comment= ROSA dark theme
Comment[ru]=Тёмное оформление ROSA
Encoding=UTF-8
Keywords=Desktop;Workspace;Appearance;Look and Feel;Logout;Lock;Suspend;Shutdown;Hibernate;
Keywords[ru]=Desktop;Workspace;Appearance;Look and Feel;Logout;Lock;Suspend;Shutdown;Hibernate;рабочий стол;рабочая среда;внешний вид;визуальное представление;выход;завершение сеанса;блокировка;приостановка работы;завершение работы;выключение;спящий режим;ждущий режим;
Name=ROSA dark
Name[ru]=Темная ROSA
Type=Service
X-KDE-ServiceTypes=Plasma/LookAndFeel
X-KDE-ParentApp=
X-KDE-PluginInfo-Author=NTC IT ROSA
X-KDE-PluginInfo-Category=
X-KDE-PluginInfo-Email=support@rosalinux.ru
X-KDE-PluginInfo-EnabledByDefault=true
X-KDE-PluginInfo-License=GPL-2.0+
X-KDE-PluginInfo-Name=org.kde.rosadark.desktop
X-KDE-PluginInfo-Version=3.0
X-KDE-PluginInfo-Website=http://rosalinux.ru
X-KDE-fallbackPackage=org.kde.breeze.desktop
X-Plasma-MainScript=defaults
{
"KPlugin": {
"Authors": [
{
"Email": "support@rosalinux.ru",
"Name": "NTC IT ROSA"
}
],
"Category": "",
"Description": "ROSA dark theme",
"Description[ru]": "Тёмное оформление ROSA",
"EnabledByDefault": true,
"Id": "org.kde.rosadark.desktop",
"License": "GPL-2.0+",
"Name": "ROSA dark theme",
"Name[ru]": "Темная ROSA",
"ServiceTypes": [
"Plasma/LookAndFeel"
],
"Version": "3.0",
"Website": "http://rosalinux.ru"
},
"Keywords": "Desktop;Workspace;Appearance;Look and Feel;Logout;Lock;Suspend;Shutdown;Hibernate;",
"Keywords[ru]": "Desktop;Workspace;Appearance;Look and Feel;Logout;Lock;Suspend;Shutdown;Hibernate;рабочий стол;рабочая среда;внешний вид;визуальное представление;выход;завершение сеанса;блокировка;приостановка работы;завершение работы;выключение;спящий режим;ждущий режим;",
"X-KDE-ParentApp": "",
"X-KDE-fallbackPackage": "org.kde.breeze.desktop",
"X-Plasma-MainScript": "defaults"
}
[kdeglobals][General]
ColorScheme=ROSALight
[kdeglobals][Icons]
Theme=rosa5
[plasmarc][Theme]
name=ROSA-Light
[Wallpaper]
Image=ROSA-Light
[KSplash]
Theme=org.kde.rosalight.desktop
\ Нет новой строки в конце файла
/*
* 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
import org.kde.plasma.core 2.0 as PlasmaCore
Rectangle {
id: root
Image {
source: "/usr/share/wallpapers/ROSA-light-default.svg"
anchors.centerIn: parent
fillMode: Image.PreserveAspectCrop
height: parent.height
width: parent.width
}
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;
}
}
Item {
id: content
anchors.fill: parent
opacity: 0
TextMetrics {
id: units
text: "M"
property int gridUnit: boundingRect.height
property int largeSpacing: PlasmaCore.Units.gridUnit
property int smallSpacing: Math.max(2, gridUnit/4)
}
Image {
id: logo
//match SDDM/lockscreen avatar positioning
property real size: PlasmaCore.Units.gridUnit * 8
anchors.centerIn: parent
source: "images/plasma.svgz"
sourceSize.width: size
sourceSize.height: size
}
// TODO: port to PlasmaComponents3.BusyIndicator
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/busywidget.svgz"
sourceSize.height: PlasmaCore.Units.gridUnit * 2
sourceSize.width: PlasmaCore.Units.gridUnit * 2
RotationAnimator on rotation {
id: rotationAnimator
from: 0
to: 360
// Not using a standard duration value because we don't want the
// animation to spin faster or slower based on the user's animation
// scaling preferences; it doesn't make sense in this context
duration: 2000
loops: Animation.Infinite
// Don't want it to animate at all if the user has disabled animations
running: PlasmaCore.Units.longDuration > 1
}
}
Row {
spacing: PlasmaCore.Units.smallSpacing*2
anchors {
bottom: parent.bottom
right: parent.right
margins: PlasmaCore.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: PlasmaCore.Units.gridUnit * 2
sourceSize.width: PlasmaCore.Units.gridUnit * 2
}
}
}
OpacityAnimator {
id: introAnimation
running: false
target: content
from: 0
to: 1
duration: PlasmaCore.Units.veryLongDuration * 2
easing.type: Easing.InOutQuad
}
}
[Desktop Entry]
Comment=ROSA light theme
Comment[ru]=Светлое оформление ROSA
Encoding=UTF-8
Keywords=Desktop;Workspace;Appearance;Look and Feel;Logout;Lock;Suspend;Shutdown;Hibernate;
Name=ROSA light theme
Name[ru]=Светлая ROSA
Type=Service
X-KDE-ServiceTypes=Plasma/LookAndFeel
X-KDE-ParentApp=
X-KDE-PluginInfo-Author=NTC IT ROSA
X-KDE-PluginInfo-Category=
X-KDE-PluginInfo-Email=support@rosalinux.ru
X-KDE-PluginInfo-License=GPL-2.0+
X-KDE-PluginInfo-Name=org.kde.rosalight.desktop
X-KDE-PluginInfo-Version=3.0
X-KDE-PluginInfo-Website=http://rosalinux.ru
X-KDE-fallbackPackage=org.kde.breeze.desktop
X-Plasma-MainScript=defaults
Поддерживает Markdown
0% или .
You are about to add 0 people to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Пожалуйста, зарегистрируйтесь или чтобы прокомментировать