Skip to content

Commit

Permalink
refactor: add scheme style with terminal
Browse files Browse the repository at this point in the history
1. default use system deepin-terminal scheme
2. not found deepin-terminal scheme, use qrc-file scheme file
  • Loading branch information
Yurii.Huang committed Sep 13, 2024
1 parent f6c331e commit f601a7e
Show file tree
Hide file tree
Showing 41 changed files with 2,913 additions and 5 deletions.
5 changes: 5 additions & 0 deletions src/plugins/console/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,15 @@ set(CXX_H
console.h
)

set (QRC_FILES
"${CMAKE_CURRENT_SOURCE_DIR}/console.qrc"
)

add_library(${PROJECT_NAME}
SHARED
${CXX_CPP}
${CXX_H}
${QRC_FILES}
)

target_link_libraries(${PROJECT_NAME}
Expand Down
42 changes: 42 additions & 0 deletions src/plugins/console/color-schemes/BlackOnLightYellow.schema
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# example scheme for konsole

# the title is to appear in the menu.

title Black on Light Yellow

# foreground colors

# note that the default background color is flagged
# to become transparent when an image is present.

# slot transparent bold
# | | |
# V V--color--V V V

color 0 0 0 0 0 0 # regular foreground color (Black)
color 1 255 255 221 1 0 # regular background color (Light Yellow)

color 2 0 0 0 0 0 # regular color 0 Black
color 3 178 24 24 0 0 # regular color 1 Red
color 4 24 178 24 0 0 # regular color 2 Green
color 5 178 104 24 0 0 # regular color 3 Yellow
color 6 24 24 178 0 0 # regular color 4 Blue
color 7 178 24 178 0 0 # regular color 5 Magenta
color 8 24 178 178 0 0 # regular color 6 Cyan
color 9 178 178 178 0 0 # regular color 7 White

# intensive colors

# instead of changing the colors, we've flaged the text to become bold

color 10 0 0 0 0 1 # intensive foreground color
color 11 255 255 221 1 0 # intensive background color

color 12 104 104 104 0 0 # intensive color 0
color 13 255 84 84 0 0 # intensive color 1
color 14 84 255 84 0 0 # intensive color 2
color 15 255 255 84 0 0 # intensive color 3
color 16 84 84 255 0 0 # intensive color 4
color 17 255 84 255 0 0 # intensive color 5
color 18 84 255 255 0 0 # intensive color 6
color 19 255 255 255 0 0 # intensive color 7
104 changes: 104 additions & 0 deletions src/plugins/console/color-schemes/BlackOnRandomLight.colorscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
[Background]
Bold=false
Color=247,247,214
Transparency=true
MaxRandomHue=340

[BackgroundIntense]
Bold=false
Color=255,255,221
Transparency=true

[Color0]
Bold=false
Color=0,0,0
Transparency=false

[Color0Intense]
Bold=false
Color=104,104,104
Transparency=false

[Color1]
Bold=false
Color=178,24,24
Transparency=false

[Color1Intense]
Bold=false
Color=255,84,84
Transparency=false

[Color2]
Bold=false
Color=24,178,24
Transparency=false

[Color2Intense]
Bold=false
Color=84,255,84
Transparency=false

[Color3]
Bold=false
Color=178,104,24
Transparency=false

[Color3Intense]
Bold=false
Color=255,255,84
Transparency=false

[Color4]
Bold=false
Color=24,24,178
Transparency=false

[Color4Intense]
Bold=false
Color=84,84,255
Transparency=false

[Color5]
Bold=false
Color=178,24,178
Transparency=false

[Color5Intense]
Bold=false
Color=255,84,255
Transparency=false

[Color6]
Bold=false
Color=24,178,178
Transparency=false

[Color6Intense]
Bold=false
Color=84,255,255
Transparency=false

[Color7]
Bold=false
Color=178,178,178
Transparency=false

[Color7Intense]
Bold=false
Color=255,255,255
Transparency=false

[Foreground]
Bold=false
Color=0,0,0
Transparency=false

[ForegroundIntense]
Bold=true
Color=0,0,0
Transparency=false

[General]
Description=Black on Random Light
Opacity=1
42 changes: 42 additions & 0 deletions src/plugins/console/color-schemes/BlackOnWhite.schema
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# example scheme for konsole

# the title is to appear in the menu.

title Black on White

# foreground colors

# note that the default background color is flagged
# to become transparent when an image is present.

# slot transparent bold
# | | |
# V V--color--V V V

color 0 0 0 0 0 0 # regular foreground color (Black)
color 1 248 248 248 1 0 # regular background color (White)

color 2 0 0 0 0 0 # regular color 0 Black
color 3 178 24 24 0 0 # regular color 1 Red
color 4 24 178 24 0 0 # regular color 2 Green
color 5 178 104 24 0 0 # regular color 3 Yellow
color 6 24 24 178 0 0 # regular color 4 Blue
color 7 178 24 178 0 0 # regular color 5 Magenta
color 8 24 178 178 0 0 # regular color 6 Cyan
color 9 178 178 178 0 0 # regular color 7 White

# intensive colors

# instead of changing the colors, we've flaged the text to become bold

color 10 0 0 0 0 1 # intensive foreground color
color 11 255 255 255 1 0 # intensive background color

color 12 104 104 104 0 0 # intensive color 0
color 13 255 84 84 0 0 # intensive color 1
color 14 84 255 84 0 0 # intensive color 2
color 15 255 255 84 0 0 # intensive color 3
color 16 84 84 255 0 0 # intensive color 4
color 17 255 84 255 0 0 # intensive color 5
color 18 84 255 255 0 0 # intensive color 6
color 19 255 255 255 0 0 # intensive color 7
95 changes: 95 additions & 0 deletions src/plugins/console/color-schemes/BreezeModified.colorscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
[Background]
Color=49,54,59

[BackgroundFaint]
Color=49,54,59

[BackgroundIntense]
Color=35,38,41

[Color0]
Color=7,54,66

[Color0Faint]
Color=32,43,54

[Color0Intense]
Color=255,85,0

[Color1]
Color=237,21,21

[Color1Faint]
Color=120,50,40

[Color1Intense]
Color=192,57,43

[Color2]
Color=17,209,22

[Color2Faint]
Color=23,162,98

[Color2Intense]
Color=28,220,154

[Color3]
Color=246,116,0

[Color3Faint]
Color=182,86,25

[Color3Intense]
Color=253,188,75

[Color4]
Color=29,153,243

[Color4Faint]
Color=27,102,143

[Color4Intense]
Color=61,174,233

[Color5]
Color=155,89,182

[Color5Faint]
Color=97,74,115

[Color5Intense]
Color=142,68,173

[Color6]
Color=26,188,156

[Color6Faint]
Color=24,108,96

[Color6Intense]
Color=22,160,133

[Color7]
Color=239,240,241

[Color7Faint]
Color=99,104,109

[Color7Intense]
Color=252,252,252

[Foreground]
Color=239,240,241

[ForegroundFaint]
Color=220,230,231

[ForegroundIntense]
Color=252,252,252

[General]
Description=BreezeModified
Opacity=0.95
Wallpaper=

Loading

0 comments on commit f601a7e

Please sign in to comment.