Merge branch 'main' of git.arirex.me:iris/ai-app
This commit is contained in:
commit
359649bc73
26 files changed
+1361
-271
No files matched your search
@@ -25,7 +25,9 @@ private object Mocha {
|
||||
val Sky = Color(0xFF89DCEB)
|
||||
val Blue = Color(0xFF89B4FA)
|
||||
val Lavender = Color(0xFFB4BEFE)
|
||||
val Pink = Color(0xFFF5C2E7)
|
||||
val Text = Color(0xFFCDD6F4)
|
||||
val Subtext1 = Color(0xFFBAC2DE)
|
||||
val Subtext0 = Color(0xFFA6ADC8)
|
||||
val Overlay0 = Color(0xFF6C7086)
|
||||
val Surface2 = Color(0xFF585B70)
|
||||
@@ -216,6 +218,45 @@ fun catppuccinSyntax(): SyntaxPalette =
|
||||
mark = Mocha.Sky,
|
||||
)
|
||||
|
||||
/**
|
||||
* The sixteen terminal colours, for what a Bash tool call printed; see [AnsiPalette].
|
||||
*
|
||||
* Catppuccin publishes its own ANSI mapping and this is it, rather than the eight accents picked by
|
||||
* eye: a program printing in "colour 4" means blue, and which blue is a decision the palette has
|
||||
* already made for every other blue on the screen.
|
||||
*
|
||||
* Mocha's bright half is the same accents as its normal half -- only the two greys differ -- which
|
||||
* is upstream's choice and not an omission here. A program that uses bright red to mean something
|
||||
* other than red is relying on a distinction its own terminal may not draw either.
|
||||
*
|
||||
* The background is [rawSurface] because that is what a tool's output is drawn on, and reverse
|
||||
* video needs to know what it is reversing against.
|
||||
*/
|
||||
fun ansiPalette(): AnsiPalette =
|
||||
AnsiPalette(
|
||||
colours =
|
||||
listOf(
|
||||
Mocha.Surface1,
|
||||
Mocha.Red,
|
||||
Mocha.Green,
|
||||
Mocha.Yellow,
|
||||
Mocha.Blue,
|
||||
Mocha.Pink,
|
||||
Mocha.Teal,
|
||||
Mocha.Subtext1,
|
||||
Mocha.Surface2,
|
||||
Mocha.Red,
|
||||
Mocha.Green,
|
||||
Mocha.Yellow,
|
||||
Mocha.Blue,
|
||||
Mocha.Pink,
|
||||
Mocha.Teal,
|
||||
Mocha.Subtext0,
|
||||
),
|
||||
foreground = Mocha.Text,
|
||||
background = Mocha.Crust,
|
||||
)
|
||||
|
||||
/**
|
||||
* A link. Blue is what a link is on every Catppuccin surface, and the one colour to leave alone.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user