|
@ -160,6 +160,7 @@ xcb_pixmap_t draw_image(uint32_t *resolution) { |
|
|
cairo_set_source_rgba(ctx, 0, 114.0 / 255, 255.0 / 255, 0.75); |
|
|
cairo_set_source_rgba(ctx, 0, 114.0 / 255, 255.0 / 255, 0.75); |
|
|
break; |
|
|
break; |
|
|
case STATE_PAM_WRONG: |
|
|
case STATE_PAM_WRONG: |
|
|
|
|
|
case STATE_I3LOCK_LOCK_FAILED: |
|
|
cairo_set_source_rgba(ctx, 250.0 / 255, 0, 0, 0.75); |
|
|
cairo_set_source_rgba(ctx, 250.0 / 255, 0, 0, 0.75); |
|
|
break; |
|
|
break; |
|
|
default: |
|
|
default: |
|
@ -174,6 +175,7 @@ xcb_pixmap_t draw_image(uint32_t *resolution) { |
|
|
cairo_set_source_rgb(ctx, 51.0 / 255, 0, 250.0 / 255); |
|
|
cairo_set_source_rgb(ctx, 51.0 / 255, 0, 250.0 / 255); |
|
|
break; |
|
|
break; |
|
|
case STATE_PAM_WRONG: |
|
|
case STATE_PAM_WRONG: |
|
|
|
|
|
case STATE_I3LOCK_LOCK_FAILED: |
|
|
cairo_set_source_rgb(ctx, 125.0 / 255, 51.0 / 255, 0); |
|
|
cairo_set_source_rgb(ctx, 125.0 / 255, 51.0 / 255, 0); |
|
|
break; |
|
|
break; |
|
|
case STATE_PAM_IDLE: |
|
|
case STATE_PAM_IDLE: |
|
@ -213,6 +215,9 @@ xcb_pixmap_t draw_image(uint32_t *resolution) { |
|
|
case STATE_PAM_WRONG: |
|
|
case STATE_PAM_WRONG: |
|
|
text = "wrong!"; |
|
|
text = "wrong!"; |
|
|
break; |
|
|
break; |
|
|
|
|
|
case STATE_I3LOCK_LOCK_FAILED: |
|
|
|
|
|
text = "lock failed!"; |
|
|
|
|
|
break; |
|
|
default: |
|
|
default: |
|
|
if (show_failed_attempts && failed_attempts > 0) { |
|
|
if (show_failed_attempts && failed_attempts > 0) { |
|
|
if (failed_attempts > 999) { |
|
|
if (failed_attempts > 999) { |
|
|