Skip to content

Commit

Permalink
fix #32
Browse files Browse the repository at this point in the history
change error-label color from hardcoded to css
  • Loading branch information
jovanlanik committed Sep 1, 2022
1 parent 71d12a3 commit a743b8a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/source.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,9 @@ int main(int argc, char **argv) {
"window.focused:not(.hidden) #clock-label {"
"font-size: 32pt;"
"}"
"#error-label {"
"color: red;"
"}"
);

if(style_path == NULL) style_path = xdg_get_config_path("style.css");
Expand Down
2 changes: 1 addition & 1 deletion src/window.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ static gboolean window_pw_failure(gpointer data) {
window_set_busy(ctx, FALSE);
gtk_entry_set_text(GTK_ENTRY(ctx->input_field), "");
gtk_widget_grab_focus(ctx->input_field);
gtk_label_set_markup(GTK_LABEL(ctx->error_label), "<span color=\"red\">Login failed</span>");
gtk_label_set_text(GTK_LABEL(ctx->error_label), "Login failed");
return G_SOURCE_REMOVE;
}

Expand Down

0 comments on commit a743b8a

Please sign in to comment.