]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
- improve scrollbar appearance (#174771)
authormlichvar <mlichvar>
Fri, 15 Sep 2006 13:23:58 +0000 (13:23 +0000)
committermlichvar <mlichvar>
Fri, 15 Sep 2006 13:23:58 +0000 (13:23 +0000)
scrollbar.c

index 1a737a40900456267a2dcccbf837b8bfef58e5cb..96ed513f7d7ca954f3b1c504e88930d80bfae736 100644 (file)
@@ -47,7 +47,7 @@ newtComponent newtVerticalScrollbar(int left, int top, int height,
     sb = malloc(sizeof(*sb));
     co->data = sb;
 
-    if (!strcmp(getenv("TERM"), "linux") && height >= 2) {
+    if (height >= 2) {
        sb->arrows = 1;
        sb->curr = 1;
     } else {
@@ -100,7 +100,7 @@ static void sbDraw(newtComponent co) {
 
 static void sbDrawThumb(newtComponent co, int isOn) {
     struct scrollbar * sb = co->data;
-    SLtt_Char_Type ch = isOn ? '#' : SLSMG_CKBRD_CHAR;
+    SLtt_Char_Type ch = isOn ? SLSMG_BLOCK_CHAR : SLSMG_CKBRD_CHAR;
 
     if (!co->isMapped) return;