This commit is contained in:
krizej 2024-08-01 22:55:07 +02:00
parent 19f3c5eaee
commit 98a6aeb7c3
11 changed files with 0 additions and 338 deletions

View file

@ -1,16 +0,0 @@
maya
----------------------------------------------------------------------
This theme follow the licencing policy of SDDM.
1) All QML files are available under terms of the MIT License.
2) The material design icons from https://design.google.com/icons/
have been used in the theme.
These icon are available under the Creative Common Attribution 4.0
International License (CC-BY 4.0).
3) Open Sans Condensed font downloaded from Font Squirrel is available
under the Apache License version 2.0.
(https://www.fontsquirrel.com/license/open-sans-condensed)
----------------------------------------------------------------------

View file

@ -1,31 +0,0 @@
1. INTRODUCTION
In Hindi, 'maya' refers to 'material wealth'.
This is a simple 'material' inspired SDDM theme.
2. BACKGROUND
While contributing new translations, I tried testing them on
my working Linux machine. But only few strings appeared to be
translated.
Took some time, to discover that SDDM theme on my desktop was
not using strings from SDDM. Few other themes I tried, weren't
using all the strings.
Necessity to test translations was the driving force behind
this theme. The 'material' inspiration helps in keeping focus
on original intent.
3. ACKNOWLEDGEMENTS
1. The basic theme and colors are material inspired.
2. Material Icons have been used from:
https://design.google.com/icons/
3. Open Sans Condensed font from Font Squirrel.
https://www.fontsquirrel.com/

View file

@ -1,206 +0,0 @@
//
// [maya] components/SpButton.qml
//
// Implements custom action button with label
//
// (c) 2016 Sanjeev Premi (spremi@ymail.com)
//
// SPDX-License-Identifier: MIT
// (https://spdx.org/licenses/MIT.html)
//
import QtQuick 2.0
Item {
id : sp_button
property bool enabled : true
property alias icon : sp_button_icon.source
property alias label : sp_button_label.text
property alias font : sp_button_label.font
property color iconColor : "#aaaaaa"
property color labelColor : "#424242"
property color hoverIconColor : "#cccccc"
property color hoverLabelColor : "#808080"
property color pressIconColor : "#dcdcdc"
property color pressLabelColor : "#a0a0a0"
property color disableColor : "#888888"
signal pressed()
signal released()
signal clicked()
Row {
x : 4
y : 4
spacing : 8
Rectangle {
id : sp_button_bg
width : 40
height : 40
radius : 20
color : iconColor
Image {
id : sp_button_icon
width : 40
height : 40
source : "./blank.svg"
fillMode : Image.Pad
horizontalAlignment : Image.AlignHCenter
verticalAlignment : Image.AlignVCenter
}
}
Text {
id : sp_button_label
height : 40
text : ""
color : labelColor
font.pixelSize : 24
font.weight : Font.DemiBold
fontSizeMode : Text.VerticalFit
horizontalAlignment : Text.AlignRight
verticalAlignment : Text.AlignVCenter
}
}
//
// States and associated visual attributes
//
states: [
State {
name : "disabled"
when : (sp_button.enabled === false)
PropertyChanges {
target : sp_button_bg
color : disableColor
}
PropertyChanges {
target : sp_button_label
color : disableColor
}
},
State {
name : "hover"
PropertyChanges {
target : sp_button_label
color : hoverLabelColor
}
PropertyChanges {
target : sp_button_bg
color : hoverIconColor
}
},
State {
name : "pressed"
PropertyChanges {
target : sp_button_label
color : hoverLabelColor
}
PropertyChanges {
target : sp_button_bg
color : pressIconColor
}
}
]
//
// Behavior on state transitions
//
transitions: [
Transition {
from : ""
to : "hover"
ColorAnimation {
duration: 250
}
},
Transition {
from : ""
to : "pressed"
ColorAnimation {
duration: 25
}
},
Transition {
from : "disabled"
to : "enabled"
ColorAnimation {
duration: 50
}
},
Transition {
from : "enabled"
to : "disabled"
ColorAnimation {
duration: 50
}
}
]
//
// Area to react to mouse actions
//
MouseArea {
anchors.fill : sp_button
hoverEnabled : true
cursorShape : Qt.PointingHandCursor
acceptedButtons : Qt.LeftButton
onEntered : {
sp_button.state = "hover"
}
onExited : {
sp_button.state = ""
}
onPressed : {
sp_button.state = "pressed"
}
onClicked : {
sp_button.clicked()
}
onReleased : {
if (containsMouse) {
sp_button.state = "hover"
} else {
sp_button.state = ""
}
}
}
}

View file

@ -1,49 +0,0 @@
//
// [maya] components/SpClock.qml
//
// Implements custom clock component
//
// (c) 2016 Sanjeev Premi (spremi@ymail.com)
//
// SPDX-License-Identifier: MIT
// (https://spdx.org/licenses/MIT.html)
//
import QtQuick 2.0
Item {
id : sp_clock
property date value : new Date()
property color tColor : "white"
property alias tFont : sp_clock_text.font
implicitWidth : sp_clock_text.implicitWidth
implicitHeight : sp_clock_text.implicitHeight
Timer {
interval : 100
running : true
repeat : true;
onTriggered : sp_clock.value = new Date()
}
Text {
id : sp_clock_text
text : Qt.formatDateTime(sp_clock.value, "dddd, dd MMMM yyyy HH:mm AP")
color : sp_clock.tColor
font.pixelSize : 24
fontSizeMode : Text.VerticalFit
horizontalAlignment : Text.AlignHCenter
verticalAlignment : Text.AlignVCenter
}
}

View file

@ -1,4 +0,0 @@
<svg fill="#FFFFFF" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
<path d="M7 10l5 5 5-5z"/>
<path d="M0 0h24v24H0z" fill="none"/>
</svg>

Before

Width:  |  Height:  |  Size: 178 B

View file

@ -1,4 +0,0 @@
<svg fill="#FFFFFF" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
<path d="M0 0h24v24H0z" fill="none"/>
<path d="M13 3h-2v10h2V3zm4.83 2.17l-1.42 1.42C17.99 7.86 19 9.81 19 12c0 3.87-3.13 7-7 7s-7-3.13-7-7c0-2.19 1.01-4.14 2.58-5.42L6.17 5.17C4.23 6.82 3 9.26 3 12c0 4.97 4.03 9 9 9s9-4.03 9-9c0-2.74-1.23-5.18-3.17-6.83z"/>
</svg>

Before

Width:  |  Height:  |  Size: 372 B

View file

@ -1,4 +0,0 @@
<svg fill="#FFFFFF" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
<path d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"/>
<path d="M0 0h24v24H0z" fill="none"/>
</svg>

Before

Width:  |  Height:  |  Size: 366 B

View file

@ -1,4 +0,0 @@
<svg fill="#FFFFFF" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
<path d="M0 0h24v24H0z" fill="none"/>
<path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"/>
</svg>

Before

Width:  |  Height:  |  Size: 214 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

View file

@ -1,20 +0,0 @@
{ lib, stdenv, fetchzip }:
stdenv.mkDerivation rec {
pname = "sddm-i3-theme";
version = "1";
src = fetchzip {
url = "http://192.168.1.12/${pname}.tar.gz";
hash = "sha256-587c+T7SflqYshPxRRcVD4xmY2pc4UBw+bYJQm04ZjU=";
};
installPhase = ''
mkdir -p $out/share/sddm/themes/${pname}/
cp -r $src/* $out/share/sddm/themes/${pname}/
'';
meta = {
license = lib.licenses.mit;
platforms = lib.platforms.linux;
};
}