gloo-cli 1.6 → 1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/menu.rb +11 -5
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: de0c2f5d3248b8e793146311c98fdd9fb229970153e9269b0e2e975c9bc2709b
|
|
4
|
+
data.tar.gz: dbfab634d6eb0124dc6b1dd1d4a4a907c3d8b6201b817f87359aeabc64e0e752
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 01c34a9326f5f68beeadbaa8187c06438088b82fb6470dd429a71f565715b192f1cf0198fe205b0af3dc1fefc200269bc9e37ba94cdad472838259b98b06cb69
|
|
7
|
+
data.tar.gz: bb0899b6930b6519541c65dffd17928298e2ef2811beeed015d9d8b90297e6fe9b1a49bd033f867f756a43ddfb52a6011d483cf7bb14277816d8ce476adb6e65
|
data/lib/menu.rb
CHANGED
|
@@ -231,7 +231,8 @@ class Menu < Gloo::Core::Obj
|
|
|
231
231
|
dt = DateTime.now
|
|
232
232
|
d = dt.strftime( '%Y.%m.%d' )
|
|
233
233
|
t = dt.strftime( '%I:%M:%S' )
|
|
234
|
-
|
|
234
|
+
theme = @engine.theme
|
|
235
|
+
cmd = @engine.platform.prompt.ask( "#{theme.accent( d )} #{theme.emphasis( t )} >" )
|
|
235
236
|
else
|
|
236
237
|
cmd = @engine.platform.prompt.ask( prompt_value )
|
|
237
238
|
end
|
|
@@ -311,15 +312,20 @@ class Menu < Gloo::Core::Obj
|
|
|
311
312
|
end
|
|
312
313
|
end
|
|
313
314
|
|
|
314
|
-
#
|
|
315
|
+
#
|
|
315
316
|
# There is a title, so show it.
|
|
316
|
-
#
|
|
317
|
+
#
|
|
318
|
+
# Deliberately left uncolored, same reasoning as
|
|
319
|
+
# Gloo::App::Table#show: box-drawing borders and text read fine
|
|
320
|
+
# against the terminal's own default colors, and forcing a fixed
|
|
321
|
+
# foreground/background fights whatever theme the terminal is
|
|
322
|
+
# actually running.
|
|
323
|
+
#
|
|
317
324
|
def run_default_title
|
|
318
325
|
@engine.platform&.clear_screen
|
|
319
326
|
show_menu_stack
|
|
320
327
|
|
|
321
|
-
|
|
322
|
-
puts title_text.colorize( :color => :white, :background => :black )
|
|
328
|
+
puts @engine.platform.table.box( title )
|
|
323
329
|
end
|
|
324
330
|
|
|
325
331
|
#
|