mirror of
https://github.com/carey314/mio-plugin-clipper.git
synced 2026-08-10 07:44:32 +00:00
42 lines
1.4 KiB
Swift
42 lines
1.4 KiB
Swift
|
|
//
|
||
|
|
// Theme.swift
|
||
|
|
// 划词侠 plugin
|
||
|
|
//
|
||
|
|
// Same visual language as 看盘侠 — pure black panel + lime accent.
|
||
|
|
//
|
||
|
|
|
||
|
|
import SwiftUI
|
||
|
|
|
||
|
|
enum ClipperTheme {
|
||
|
|
// Lime accent — same value as 看盘侠 `#d4ff3a`.
|
||
|
|
static let lime = Color(red: 0xD4/255, green: 0xFF/255, blue: 0x3A/255)
|
||
|
|
|
||
|
|
// Soft cyan for "info" affordances (translate-target chips, etc.)
|
||
|
|
static let cyan = Color(red: 0x6E/255, green: 0xE7/255, blue: 0xFF/255)
|
||
|
|
|
||
|
|
// Warning amber for permission banners.
|
||
|
|
static let amber = Color(red: 0xFF/255, green: 0xC4/255, blue: 0x54/255)
|
||
|
|
|
||
|
|
// Soft red for error / cancel states.
|
||
|
|
static let danger = Color(red: 0xFF/255, green: 0x6E/255, blue: 0x6E/255)
|
||
|
|
|
||
|
|
// Panel background.
|
||
|
|
static let panelBg = Color(red: 0x05/255, green: 0x05/255, blue: 0x05/255)
|
||
|
|
|
||
|
|
// Subtle white overlays.
|
||
|
|
static let overlay04 = Color.white.opacity(0.04)
|
||
|
|
static let overlay06 = Color.white.opacity(0.06)
|
||
|
|
static let overlay08 = Color.white.opacity(0.08)
|
||
|
|
static let overlay12 = Color.white.opacity(0.12)
|
||
|
|
static let overlay18 = Color.white.opacity(0.18)
|
||
|
|
|
||
|
|
// Foreground tints.
|
||
|
|
static let fgPrimary = Color(red: 0xF4/255, green: 0xF4/255, blue: 0xF5/255)
|
||
|
|
static let fg85 = Color.white.opacity(0.85)
|
||
|
|
static let fg70 = Color.white.opacity(0.7)
|
||
|
|
static let fg55 = Color.white.opacity(0.55)
|
||
|
|
static let fg45 = Color.white.opacity(0.45)
|
||
|
|
static let fg40 = Color.white.opacity(0.4)
|
||
|
|
static let fg35 = Color.white.opacity(0.35)
|
||
|
|
}
|