From 7461486661a9d9cdbf37f26719a0aac9375f1a48 Mon Sep 17 00:00:00 2001 From: Kian Kasad Date: Fri, 2 Sep 2022 21:50:04 -0700 Subject: [PATCH] Add short title to capabilities view 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..." --- ui.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ui.go b/ui.go index 1edfea8..f62b7d1 100644 --- a/ui.go +++ b/ui.go @@ -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)