mirror of
https://github.com/RGBCube/color.v
synced 2025-07-30 17:37:45 +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
|
||||
|
||||
- name: Format Code
|
||||
run: v fmt -w .
|
||||
run: v fmt -w ./
|
||||
|
||||
- name: Push To GitHub
|
||||
continue-on-error: true
|
||||
|
|
|
@ -2,7 +2,6 @@ module color
|
|||
|
||||
import term
|
||||
|
||||
|
||||
// Color is a Style extension that also supports rendering in the background.
|
||||
// Every Color is a Style, but not every Style is a Color.
|
||||
pub interface Color {
|
|
@ -2,7 +2,7 @@ module color
|
|||
|
||||
import term
|
||||
|
||||
pub const (
|
||||
pub const (
|
||||
// Colors
|
||||
black = Color(BasicColor.black)
|
||||
red = Color(BasicColor.red)
|
|
@ -3,7 +3,7 @@ module color
|
|||
// Brush is the complex Style type that can hold multiple colors and styles.
|
||||
pub interface Brush {
|
||||
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.
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue