can now use named colors

This commit is contained in:
kepler155c@gmail.com
2020-04-21 22:32:12 -06:00
parent e703c7f7b6
commit 5933f8c40f
42 changed files with 308 additions and 400 deletions

View File

@@ -2,8 +2,6 @@ local Array = require('opus.array')
local Config = require('opus.config')
local UI = require('opus.ui')
local colors = _G.colors
local tab = UI.Tab {
tabTitle = 'Preferred',
description = 'Select preferred applications',
@@ -25,7 +23,7 @@ local tab = UI.Tab {
},
getRowTextColor = function(self, row)
if row == self.values[1] then
return colors.yellow
return 'yellow'
end
return UI.Grid.getRowTextColor(self, row)
end,