Conception d'interfaces Quickshell (QML)

VérifiéSûr

Créez des widgets QML haute qualité et polisés pour Quickshell, intégrant design thinking bold et expertise technique. Utilise composants existants, tokens de thème et services réactifs.

Spar Skills Guide Bot
DeveloppementIntermédiaire
3002/06/2026
Claude Code
#frontend#qml#quickshell#ui-design

Recommandé pour

Notre avis

Fournit des directives de conception et techniques pour créer des widgets QML soignés pour l'environnement de bureau Quickshell, spécifiquement pour la configuration 'Obelisk'.

Points forts

  • Processus de conception structuré avec un parti pris esthétique clair
  • Intégration rigoureuse du singleton Theme pour la cohérence visuelle
  • Composants réutilisables existants (OText, OButton, OPanel, etc.)
  • Accent sur l'animation et les détails visuels (ombres, dégradés, transitions)

Limites

  • Applicable uniquement à Quickshell avec la configuration Obelisk spécifique
  • Nécessite une connaissance préalable de QML et des composants Quickshell
  • Peut être difficile à adapter à d'autres shells ou environnements de bureau
Quand l'utiliser

À utiliser lors de la création ou de la personnalisation de widgets pour l'environnement Quickshell Obelisk afin d'assurer cohérence, réutilisabilité et haute qualité esthétique.

Quand l'éviter

Ne pas utiliser pour le développement QML général en dehors de Quickshell ou pour d'autres configurations de shell sans adaptation.

Analyse de sécurité

Sûr
Score qualité92/100

The skill is a design guide for creating QML widgets; it contains no executable commands, shell invocations, or instructions that could compromise security. It only provides declarative UI code examples and theming guidance.

Aucun point d'attention détecté

Exemples

System Monitor Widget
Create a new system monitor widget for the Obelisk Quickshell shell that shows CPU, RAM, and network usage using the SystemInfo service. Follow the design principles from the frontend design skill.
Custom Launcher
Design a minimalist application launcher widget for Quickshell's Obelisk configuration. It should have a search bar, display frequently used apps, and use OPanel for the dropdown. Use the Theme tokens for styling.
Weather Widget
Implement a weather widget for the Quickshell desktop that fetches data from a service, displays current conditions and forecast, and uses smooth transitions. Ensure it integrates with the Obelisk theme.

<!-- markdownlint-disable MD041 -->

name: frontend-design description: Create distinctive, production-grade Quickshell (QML) widgets and interfaces for the user's desktop environment. Specialized for the @quickshell configuration, using existing components, theme tokens, and services. Generates creative, polished code and UI design that avoids generic AI aesthetics. license: Complete terms in LICENSE.txt


Frontend Design Skill

This skill guides the creation of high-quality QML interfaces for Quickshell, specifically tailored to the @quickshell/.config/quickshell/ configuration. It combines technical Quickshell expertise with high-end aesthetic design thinking.

Design Thinking

Before coding, commit to a BOLD aesthetic direction that fits the "Obelisk" shell but pushes it further:

  • Tone: Pick a flavor: brutally minimal, retro-futuristic, refined luxury, industrial/utilitarian, or organic.
  • Differentiation: What is the one thing that makes this widget UNFORGETTABLE?
  • Intentionality: Bold maximalism and refined minimalism both work; the key is executing with precision.

Quickshell Design Principles

  • Native Integration: Widgets must look and feel like part of the existing "Obelisk" shell.
  • Theming: Rigorously use the Theme singleton (qs.Config) for all colors, sizes, radii, and fonts.
  • Reusability: Use existing components from qs.Components (OText, OButton, IconButton, OPanel) whenever possible.
  • Reactive: Bind properties to Services (qs.Services) for live data.

Technical Foundation

Always include necessary imports:

import QtQuick
import QtQuick.Layouts
import Quickshell
import Quickshell.Wayland
import qs.Config      // Theme, Settings
import qs.Components  // OText, OButton, OPanel, etc.
import qs.Services    // Core, SystemInfo, WM

Theming Guidelines (Theme.qml)

  • Backgrounds: Theme.bgColor, Theme.bgElevated, Theme.bgElevatedAlt
  • Accents: Theme.activeColor, Theme.onHoverColor, Theme.critical (red), Theme.warning (orange)
  • Text: Theme.textActiveColor, Theme.textInactiveColor
  • Spacing: Theme.spacingXs to Theme.spacingXl
  • Radii: Theme.itemRadius, Theme.radiusMd, Theme.radiusLg

Aesthetics & Polish

  • Typography: Stick to Theme.fontFamily (CaskaydiaCove) and Theme.iconFontFamily. Use OText variants for hierarchy.
  • Motion: Use Behavior on <property> with Theme.animationDuration and Easing.InOutQuad for all transitions. Focus on staggered reveals and smooth width/opacity changes.
  • Visual Details: Create depth. Use RectangularShadow or MultiEffect for subtle shadows. Use Canvas for custom gradient borders (see CardStyling.qml).
  • Avoid "AI Slop": No predictable layouts or generic "purple on white" color schemes. Stay true to the project's Catppuccin/Dracula/Obelisk color palettes.

Component Usage

  • OText: OText { text: "Label"; bold: true; muted: true }
  • IconButton: For circular icon-only buttons.
  • OPanel: For dropdowns/menus. Always provide a unique panelNamespace.
  • ExpandingPill: Use for collapsible groups of buttons (like PowerMenu or Workspaces).

New Modules

When creating a new widget:

  1. Place it in Modules/<Category>/<Name>.qml.
  2. Use pragma ComponentBehavior: Bound.
  3. Example Pattern:
pragma ComponentBehavior: Bound
import QtQuick
import QtQuick.Layouts
import qs.Config
import qs.Components

Rectangle {
    color: Theme.bgElevated
    radius: Theme.itemRadius
    border.color: Theme.borderLight
    border.width: 1

    ColumnLayout {
        anchors.fill: parent
        anchors.margins: Theme.spacingMd
        spacing: Theme.spacingSm

        OText {
            text: "Widget Title"
            bold: true
            size: "lg"
        }
        // ... content
    }
}
Skills similaires