Place title bar buttons and text in better positions
This commit is contained in:
parent
f71d4d7001
commit
6513772001
10
app_fw.lua
10
app_fw.lua
@ -22,12 +22,16 @@ function app_class:get_formspec()
|
|||||||
formspec = formspec..'background[0,0;15,10;'..self.os.theme.app_bg..';true]'
|
formspec = formspec..'background[0,0;15,10;'..self.os.theme.app_bg..';true]'
|
||||||
end
|
end
|
||||||
if #self.os.appdata.os.stack > 1 then
|
if #self.os.appdata.os.stack > 1 then
|
||||||
formspec = formspec..'image_button[0,-0.3;1,0.5;'..self.os.theme.back_button..';os_back;<<<]' --TODO: if stack exists
|
formspec = formspec..'image_button[-0.29,-0.31;1.09,0.61;'..self.os.theme.back_button..';os_back;<]' --TODO: if stack exists
|
||||||
end
|
end
|
||||||
if self.app_info then
|
if self.app_info then
|
||||||
formspec = formspec.."label[1,-0.3;"..self.app_info.."]"
|
if #self.os.appdata.os.stack > 1 then
|
||||||
|
formspec = formspec.."label[0.8,-0.29;"..self.app_info.."]"
|
||||||
|
else
|
||||||
|
formspec = formspec.."label[-0.1,-0.29;"..self.app_info.."]"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
formspec = formspec..'image_button[14,-0.3;1,0.5;'..self.os.theme.exit_button..';os_exit;X]'
|
formspec = formspec..'image_button[14.2,-0.31;1.09,0.61;'..self.os.theme.exit_button..';os_exit;X]'
|
||||||
return formspec..app_result
|
return formspec..app_result
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user