Skip to content

Commit

Permalink
Add short title to capabilities view
Browse files Browse the repository at this point in the history
Adds a shorter main title to the capabilities view which can be centered
and not wrap. The previous title is displayed below, but is left-aligned
and can wrap.

Also changes "I'll fix it for you" to "We'll fix it..." because the
previous sentence says "We require..." and not "I require..."
  • Loading branch information
kdkasad committed Sep 3, 2022
1 parent bf599bd commit 7461486
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -406,9 +406,11 @@ func connectView(ctx *ntcontext, w *nucular.Window) {

func capabilitiesView(ctx *ntcontext, w *nucular.Window) {
w.Row(15).Dynamic(1)
w.Label("This program does not have the capabilities to function properly.", "CB")
w.Row(100).Dynamic(1)
w.LabelWrap("We require CAP_SYS_RESOURCE. If that doesn't mean anything to you, don't worry. I'll fix it for you.")
w.LabelColored("Missing capabilities", "CB", orange)
w.Row(50).Dynamic(1)
w.LabelWrap("This program does not have the capabilities to function properly.")
w.Row(60).Dynamic(1)
w.LabelWrap("We require CAP_SYS_RESOURCE. If that doesn't mean anything to you, don't worry. We'll fix it for you.")
if ctx.capsMismatch {
w.Row(15).Dynamic(1)
w.LabelColored("Warning: File has CAP_SYS_RESOURCE but our process doesn't.", "CB", orange)
Expand Down

0 comments on commit 7461486

Please sign in to comment.