mirror of
https://github.com/kepler155c/opus
synced 2025-01-03 20:30:28 +00:00
package manager ui update
This commit is contained in:
parent
7c26258f88
commit
712ffdb97c
@ -10,7 +10,7 @@ UI:configure('PackageManager', ...)
|
|||||||
|
|
||||||
local page = UI.Page {
|
local page = UI.Page {
|
||||||
grid = UI.ScrollingGrid {
|
grid = UI.ScrollingGrid {
|
||||||
x = 2, ex = -12, y = 2, ey = 7,
|
x = 2, ex = 14, y = 2, ey = -5,
|
||||||
values = { },
|
values = { },
|
||||||
columns = {
|
columns = {
|
||||||
{ heading = 'Package', key = 'name' },
|
{ heading = 'Package', key = 'name' },
|
||||||
@ -20,13 +20,13 @@ local page = UI.Page {
|
|||||||
help = 'Select a package',
|
help = 'Select a package',
|
||||||
},
|
},
|
||||||
add = UI.Button {
|
add = UI.Button {
|
||||||
x = -10, y = 4,
|
x = 2, y = -3,
|
||||||
text = 'Install',
|
text = 'Install',
|
||||||
event = 'action',
|
event = 'action',
|
||||||
help = 'Install or update',
|
help = 'Install or update',
|
||||||
},
|
},
|
||||||
remove = UI.Button {
|
remove = UI.Button {
|
||||||
x = -10, y = 6,
|
x = 12, y = -3,
|
||||||
text = 'Remove ',
|
text = 'Remove ',
|
||||||
event = 'action',
|
event = 'action',
|
||||||
operation = 'uninstall',
|
operation = 'uninstall',
|
||||||
@ -34,12 +34,13 @@ local page = UI.Page {
|
|||||||
help = 'Remove',
|
help = 'Remove',
|
||||||
},
|
},
|
||||||
description = UI.TextArea {
|
description = UI.TextArea {
|
||||||
x = 2, y = 9, ey = -4,
|
x = 16, y = 3, ey = -5,
|
||||||
|
marginRight = 0, marginLeft = 0,
|
||||||
--backgroundColor = colors.white,
|
--backgroundColor = colors.white,
|
||||||
},
|
},
|
||||||
load = UI.Button {
|
load = UI.Button {
|
||||||
x = 2, y = -3,
|
x = 22, y = -3,
|
||||||
text = 'Update package list',
|
text = 'Update packages',
|
||||||
event = 'reload',
|
event = 'reload',
|
||||||
help = 'Download the latest package list',
|
help = 'Download the latest package list',
|
||||||
},
|
},
|
||||||
|
@ -7,10 +7,7 @@ local term = _G.term
|
|||||||
local mon = peripheral.find('monitor')
|
local mon = peripheral.find('monitor')
|
||||||
if mon then
|
if mon then
|
||||||
term.redirect(mon)
|
term.redirect(mon)
|
||||||
if not settings.get('kiosk.textscale') then
|
mon.setTextScale(tonumber(settings.get('kiosk.textscale')) or 1)
|
||||||
settings.set('kiosk.textscale', .5)
|
|
||||||
end
|
|
||||||
mon.setTextScale(settings.get('kiosk.textscale') or .5)
|
|
||||||
|
|
||||||
parallel.waitForAny(
|
parallel.waitForAny(
|
||||||
function()
|
function()
|
||||||
|
Loading…
Reference in New Issue
Block a user