author | llornkcor <llornkcor> | 2002-02-03 16:06:52 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-02-03 16:06:52 (UTC) |
commit | bbbccc44398fc92dcbb148def8d30f2e78f71aa5 (patch) (unidiff) | |
tree | 79aa9e9c97de5ceec3fa7149f566aa165c1cbbf3 /core/apps/embeddedkonsole/konsole.cpp | |
parent | b7426bf997b8201667cecb0f66470e257b35ba60 (diff) | |
download | opie-bbbccc44398fc92dcbb148def8d30f2e78f71aa5.zip opie-bbbccc44398fc92dcbb148def8d30f2e78f71aa5.tar.gz opie-bbbccc44398fc92dcbb148def8d30f2e78f71aa5.tar.bz2 |
added Amber on Black color scheme
Diffstat (limited to 'core/apps/embeddedkonsole/konsole.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/apps/embeddedkonsole/konsole.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/core/apps/embeddedkonsole/konsole.cpp b/core/apps/embeddedkonsole/konsole.cpp index e2d4886..23c12f8 100644 --- a/core/apps/embeddedkonsole/konsole.cpp +++ b/core/apps/embeddedkonsole/konsole.cpp | |||
@@ -259,6 +259,7 @@ void Konsole::init(const char* _pgm, QStrList & _args) | |||
259 | colorMenu->insertItem("Cyan on White"); | 259 | colorMenu->insertItem("Cyan on White"); |
260 | colorMenu->insertItem("White on Cyan"); | 260 | colorMenu->insertItem("White on Cyan"); |
261 | colorMenu->insertItem("Blue on Black"); | 261 | colorMenu->insertItem("Blue on Black"); |
262 | colorMenu->insertItem("Amber on Black"); | ||
262 | configMenu->insertItem("Colors",colorMenu); | 263 | configMenu->insertItem("Colors",colorMenu); |
263 | 264 | ||
264 | connect( fontList, SIGNAL( activated(int) ), this, SLOT( fontChanged(int) )); | 265 | connect( fontList, SIGNAL( activated(int) ), this, SLOT( fontChanged(int) )); |
@@ -674,6 +675,12 @@ void Konsole::colorMenuSelected(int iD) | |||
674 | cfg.writeEntry("Schema","16"); | 675 | cfg.writeEntry("Schema","16"); |
675 | colorMenu->setItemChecked(-16,TRUE); | 676 | colorMenu->setItemChecked(-16,TRUE); |
676 | } | 677 | } |
678 | if(iD==-17) {// Black, Gold | ||
679 | background.setRgb(0x00,0x00,0x00); | ||
680 | foreground.setRgb(255,215,0); | ||
681 | cfg.writeEntry("Schema","17"); | ||
682 | colorMenu->setItemChecked(-17,TRUE); | ||
683 | } | ||
677 | 684 | ||
678 | for (i = 0; i < TABLE_COLORS; i++) { | 685 | for (i = 0; i < TABLE_COLORS; i++) { |
679 | if(i==0 || i == 10) { | 686 | if(i==0 || i == 10) { |
@@ -768,14 +775,13 @@ void Konsole::setColor() | |||
768 | cfg.setGroup("Colors"); | 775 | cfg.setGroup("Colors"); |
769 | int scheme = cfg.readNumEntry("Schema",1); | 776 | int scheme = cfg.readNumEntry("Schema",1); |
770 | if(scheme != 1) colorMenuSelected( -scheme); | 777 | if(scheme != 1) colorMenuSelected( -scheme); |
771 | |||
772 | } | 778 | } |
773 | 779 | ||
774 | void Konsole::scrollMenuSelected(int index) | 780 | void Konsole::scrollMenuSelected(int index) |
775 | { | 781 | { |
776 | TEWidget* te = getTe(); | 782 | TEWidget* te = getTe(); |
777 | Config cfg("Konsole"); | 783 | Config cfg("Konsole"); |
778 | cfg.setGroup("Scrollbar"); | 784 | cfg.setGroup("Scrollbar"); |
779 | switch( index){ | 785 | switch( index){ |
780 | case -21: | 786 | case -21: |
781 | te->setScrollbarLocation(0); | 787 | te->setScrollbarLocation(0); |