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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/menu.rb +11 -5
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7954b2c20f1f5a6cfeba8603a9578e92c439f2890420966a61f502a0af4be0fa
4
- data.tar.gz: e97bb3a1cc62b6934a1e24c65004ee015723cde0db1b9693f5958a85b7b5b6b9
3
+ metadata.gz: de0c2f5d3248b8e793146311c98fdd9fb229970153e9269b0e2e975c9bc2709b
4
+ data.tar.gz: dbfab634d6eb0124dc6b1dd1d4a4a907c3d8b6201b817f87359aeabc64e0e752
5
5
  SHA512:
6
- metadata.gz: 9f4ff97d30afe5771e50e485f5a00eb75a07675e746a28bd4c6cc6ae76ffe51aa1f1c4cbefd858d9705c7ac68870c651ca23278f5dffcf451743d8832cdb7856
7
- data.tar.gz: fc892775cffe97cc74b7f0f4a8f8187c12afbd9dff580d141f6d5dba396737fd8c6c50c41c5594ff6fdd3d8d1e328e8c4563d0ddd97d990c8f80120dd84c33d3
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
- cmd = @engine.platform.prompt.ask( "#{d.yellow} #{t.white} >" )
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
- title_text = @engine.platform.table.box( title )
322
- puts title_text.colorize( :color => :white, :background => :black )
328
+ puts @engine.platform.table.box( title )
323
329
  end
324
330
 
325
331
  #
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gloo-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.6'
4
+ version: '1.7'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Crane