Provides a static interface for accessing cyberpunk-themed colors and applying a global stylesheet.
More...
|
| static void | ApplyStyle () |
| | Applies the cyberpunk style globally to the QApplication. Sets the application style to "Fusion", configures a custom QPalette using the defined colors, and applies a detailed stylesheet to style common widgets.
|
| |
| static QColor | GetAccentColor () |
| | Gets the accent color (Purple).
|
| |
| static QColor | GetBackgroundDarkColor () |
| | Gets the dark background color.
|
| |
| static QColor | GetBackgroundLightColor () |
| | Gets the light background color.
|
| |
| static QColor | GetBackgroundMediumColor () |
| | Gets the medium background color.
|
| |
| static QString | GetCyberpunkFrameStyle () |
| | Generates a CSS-like style string for a basic cyberpunk-themed frame. Includes background color, border, and border-radius.
|
| |
| static QColor | GetDangerColor () |
| | Gets the danger color (Danger Red).
|
| |
| static QColor | GetMutedTextColor () |
| | Gets the muted text color (for disabled elements, etc.).
|
| |
| static QColor | GetPrimaryColor () |
| | Gets the primary color (Neon Blue).
|
| |
| static QColor | GetSecondaryColor () |
| | Gets the secondary color (Lighter Blue).
|
| |
| static QColor | GetSuccessColor () |
| | Gets the success color (Neon Green).
|
| |
| static QString | GetTechBorderStyle (bool is_active=true) |
| | Generates a CSS-like border style string with a "tech" look. The border color depends on the is_active flag.
|
| |
| static QColor | GetTextColor () |
| | Gets the main text color.
|
| |
| static QColor | GetWarningColor () |
| | Gets the warning color (Warning Yellow).
|
| |
Provides a static interface for accessing cyberpunk-themed colors and applying a global stylesheet.
This class defines a set of predefined QColor values representing a cyberpunk color palette.
It also includes a method to apply a comprehensive stylesheet to the entire QApplication, using these colors to style various standard Qt widgets (buttons, line edits, scrollbars, etc.). Additionally, it offers helper methods to generate specific CSS-like style strings for custom widgets.