mirror of
https://github.com/RGBCube/color.v
synced 2025-07-31 09:57:47 +00:00
Format and rename color/ to src/
This commit is contained in:
parent
e64d1180f5
commit
4dcb5bca42
5 changed files with 3 additions and 4 deletions
2
.github/workflows/format.yml
vendored
2
.github/workflows/format.yml
vendored
|
@ -17,7 +17,7 @@ jobs:
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Format Code
|
- name: Format Code
|
||||||
run: v fmt -w .
|
run: v fmt -w ./
|
||||||
|
|
||||||
- name: Push To GitHub
|
- name: Push To GitHub
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
|
@ -2,7 +2,6 @@ module color
|
||||||
|
|
||||||
import term
|
import term
|
||||||
|
|
||||||
|
|
||||||
// Color is a Style extension that also supports rendering in the background.
|
// Color is a Style extension that also supports rendering in the background.
|
||||||
// Every Color is a Style, but not every Style is a Color.
|
// Every Color is a Style, but not every Style is a Color.
|
||||||
pub interface Color {
|
pub interface Color {
|
|
@ -2,7 +2,7 @@ module color
|
||||||
|
|
||||||
import term
|
import term
|
||||||
|
|
||||||
pub const (
|
pub const (
|
||||||
// Colors
|
// Colors
|
||||||
black = Color(BasicColor.black)
|
black = Color(BasicColor.black)
|
||||||
red = Color(BasicColor.red)
|
red = Color(BasicColor.red)
|
|
@ -3,7 +3,7 @@ module color
|
||||||
// Brush is the complex Style type that can hold multiple colors and styles.
|
// Brush is the complex Style type that can hold multiple colors and styles.
|
||||||
pub interface Brush {
|
pub interface Brush {
|
||||||
Style // Inherits Style methods.
|
Style // Inherits Style methods.
|
||||||
mut:
|
mut:
|
||||||
set_disabled(bool) // Enable/disable the brush. When disabled, the brush doesn't render anything and returns the given string.
|
set_disabled(bool) // Enable/disable the brush. When disabled, the brush doesn't render anything and returns the given string.
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue