Conception d'interfaces Quickshell QML

VérifiéSûr

Créez des widgets et interfaces QML de haute qualité pour Quickshell avec une esthétique distinctive et polie. Spécialisé dans l'intégration native, l'utilisation de composants existants et le design audacieux.

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

Recommandé pour

Notre avis

Une compétence pour créer des widgets QML de qualité production pour le shell de bureau Quickshell, mettant l'accent sur la réflexion en design, l'intégration de thème et une esthétique soignée.

Points forts

  • Intégration profonde avec le singleton Theme de Quickshell et les composants existants pour un aspect natif
  • Accent sur le design d'animation avec des comportements et des courbes d'atténuation pour des transitions fluides
  • Conseils pour éviter les esthétiques génériques d'IA et produire des designs uniques et intentionnels
  • Patrons techniques clairs pour une structure modulaire et des liaisons réactives aux données

Limites

  • Très spécifique à l'environnement de bureau Quickshell et à son API QML
  • Nécessite une familiarité avec Qt Quick et QML, pas une compétence UI généraliste
  • Portabilité limitée ; le code généré ne peut pas être réutilisé en dehors de Quickshell
Quand l'utiliser

Lors de la création de widgets ou panneaux personnalisés pour une configuration de bureau basée sur Quickshell, comme le shell Obelisk.

Quand l'éviter

Pour le développement UI standard sur le web ou mobile, ou pour des projets non basés sur le framework Quickshell.

Analyse de sécurité

Sûr
Score qualité90/100

The skill provides only design and coding guidance for QML interfaces, with no executable commands, shell operations, or data exfiltration risks. It focuses on UI aesthetics and technical patterns.

Aucun point d'attention détecté

Exemples

Weather Widget
Create a weather widget for Quickshell that displays current conditions (temperature, icon, description) with smooth reveal animations. Use Theme tokens for colors and fonts, and bind to a live service for updates.
System Monitor Panel
Design a system monitor panel in QML for Quickshell showing CPU usage, memory, and network traffic. Use OText and OPanel components, apply motion effects, and fetch data from qs.Services.
Custom Launcher
Build a custom application launcher widget for Quickshell with a search bar, icon grid, and keyboard navigation. Follow the module pattern (Modules/Category/Name.qml) and use the Theme singleton for styling.

<!-- 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