I think I'm pretty sure about the problem now. When I press the button, the color of both boxes should be the same, but strangely, it is not the same color.
local ui = require "ui"
win = ui.Window("Deneme",300,300)
labelA = ui.Label(win,"",100,100,40,40)
labelB = ui.Label(win,"",150,100,40,40)
buton = ui.Button(win,"Bas",100,30,70,30)
labelA.bgcolor = "0x6AAA64 "
labelB.bgcolor = labelA.bgcolor
win:show()
function buton:onClick()
labelA.bgcolor = "0xF24765"
labelB.bgcolor = labelA.bgcolor
end
repeat
ui.update()
until not win.visible