Add all view

This commit is contained in:
stilobique committed 2026-11-08 10:26:27 +01:00
1 parent 186cff1d73
commit 49d8524597
18 files changed
+1007 -98

No files matched your search

+46
View File
@@ -0,0 +1,46 @@
pragma Singleton
import QtQuick 2.5
// Couleurs, tailles et animations partagées par toute l'application.
QtObject {
// Couleurs (inspirées de la palette Jellyfin)
readonly property color background: "#101010"
readonly property color panel: "#000B25"
readonly property color surface: "#202020"
readonly property color border: "#3A3A3A"
readonly property color focusBackground: "#FFFFFF"
readonly property color text: "#FFFFFF"
readonly property color textMuted: "#A0A0A0"
readonly property color textOnFocus: "#101010"
readonly property color textOnFocusMuted: "#505050"
readonly property color accent: "#00A4DC"
readonly property color accentAlt: "#AA5CC3"
readonly property color error: "#FF5252"
readonly property var avatarColors: ["#AA5CC3", "#00A4DC", "#E67E22", "#27AE60", "#C0392B", "#2C3E50"]
// Espacements
readonly property int pageMargin: 48
readonly property int spacingS: 8
readonly property int spacingM: 16
readonly property int spacingL: 24
readonly property int spacingXL: 40
// Typographie
readonly property int fontSmall: 14
readonly property int fontBody: 18
readonly property int fontTitle: 32
readonly property int fontCode: 56
// Contrôles
readonly property int controlHeight: 48
readonly property int radius: 6
readonly property int animFast: 120
// Couleur stable dérivée d'un nom (avatars, icônes de serveur).
function avatarColor(name) {
var hash = 0;
for (var i = 0; i < name.length; i++)
hash = (hash * 31 + name.charCodeAt(i)) % 100000;
return avatarColors[hash % avatarColors.length];
}
}