diff --git a/ChangeLog b/ChangeLog index 88f1bdbd..509a7f1e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,7 @@ - Session/Command menu additionally with Shift/Control+RightMouse - Function keys adjusted for Linux console emulation. - rolled linux console font +- schema for system colors added (hello Peter!) 28 Oct 1998 - tracking down licence issues - spent far to much time on explaining them diff --git a/other/Makefile.am b/other/Makefile.am index 79ad14f8..f6321a94 100644 --- a/other/Makefile.am +++ b/other/Makefile.am @@ -2,7 +2,8 @@ datadir = $(kde_datadir)/konsole data_DATA = BlackOnLightYellow.schema BlackOnWhite.schema \ Example.Schema GreenOnBlack.schema WhiteOnBlack.schema \ - default.Schema dselect.kdelnk linux.kdelnk mc.kdelnk shell.kdelnk + default.Schema dselect.kdelnk linux.kdelnk mc.kdelnk shell.kdelnk \ + syscolor.schema appsdir = $(kde_appsdir)/Utilities apps_DATA = konsole.kdelnk diff --git a/other/syscolor.schema b/other/syscolor.schema new file mode 100644 index 00000000..a9a65eaf --- /dev/null +++ b/other/syscolor.schema @@ -0,0 +1,44 @@ +# schema that uses system colors + +# the title is to appear in the menu. + +title System Colors + +# image none + +# 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 + +sysfg 0 0 0 # regular foreground color (system) +sysbg 1 1 0 # regular background color (system) + +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 diff --git a/src/main.C b/src/main.C index 13a68e74..5444e0e7 100644 --- a/src/main.C +++ b/src/main.C @@ -634,6 +634,28 @@ ColorSchema* TEDemo::readSchema(const char* path) res->table[fi].transparent = tr; res->table[fi].bold = bo; } + if (!strncmp(line,"sysfg",5)) + { int fi,tr,bo; + if(sscanf(line,"sysfg %d %d %d",&fi,&tr,&bo) != 3) + continue; + if (!(0 <= fi && fi <= TABLE_COLORS)) continue; + if (!(0 <= tr && tr <= 1 )) continue; + if (!(0 <= bo && bo <= 1 )) continue; + res->table[fi].color = kapp->textColor; + res->table[fi].transparent = tr; + res->table[fi].bold = bo; + } + if (!strncmp(line,"sysbg",5)) + { int fi,tr,bo; + if(sscanf(line,"sysbg %d %d %d",&fi,&tr,&bo) != 3) + continue; + if (!(0 <= fi && fi <= TABLE_COLORS)) continue; + if (!(0 <= tr && tr <= 1 )) continue; + if (!(0 <= bo && bo <= 1 )) continue; + res->table[fi].color = kapp->backgroundColor; + res->table[fi].transparent = tr; + res->table[fi].bold = bo; + } } } fclose(sysin);