unify color specification
colors were a mixture of 4bpp integers (0=white, 15=black) and fractional blackness levels (0=white, 1.0=black) before. This is now unified to use the color specification of the Blitbuffer API.
This commit is contained in:
1 parent
03ac887d46
commit
5982e24d57
34 files changed
+140
-104
No files matched your search
@@ -8,6 +8,7 @@ local Screen = require("ui/screen")
|
||||
local HorizontalGroup = require("ui/widget/horizontalgroup")
|
||||
local HorizontalSpan = require("ui/widget/horizontalspan")
|
||||
local Device = require("ui/device")
|
||||
local Blitbuffer = require("ffi/blitbuffer")
|
||||
|
||||
--[[
|
||||
Text widget with vertical scroll bar
|
||||
@@ -15,7 +16,7 @@ Text widget with vertical scroll bar
|
||||
local ScrollTextWidget = InputContainer:new{
|
||||
text = nil,
|
||||
face = nil,
|
||||
fgcolor = 1.0, -- [0.0, 1.0]
|
||||
fgcolor = Blitbuffer.COLOR_BLACK,
|
||||
width = 400,
|
||||
height = 20,
|
||||
scroll_bar_width = Screen:scaleByDPI(6),
|
||||
|
||||
Reference in new issue
Block a user