Themes fixes - Shell is now default for CS-BOS
This commit is contained in:
parent
c2032c6ecb
commit
3ef39211c3
@ -57,6 +57,8 @@ laptop.register_app("removable", {
|
||||
idata.label = "Backup of "..mtos.hwdef.description.." from "..os.date('%x')
|
||||
elseif fields.format == "CS-BOS" then
|
||||
idata.meta:set_string("os_format", "boot")
|
||||
local disksys = mtos.bdev:get_app_storage("removable", 'os')
|
||||
disksys.theme = "Shell"
|
||||
idata.label = "CS-BOS Boot Disk"
|
||||
end
|
||||
elseif fields.restore then
|
||||
|
@ -75,6 +75,7 @@ laptop.register_hardware("laptop:printer", {
|
||||
infotext = 'Flash Printex',
|
||||
sequence = { "off", "powersave", "on" },
|
||||
custom_launcher = "printer_launcher",
|
||||
custom_theme = "Shell",
|
||||
hw_capabilities = {"hdd"},
|
||||
node_defs = {
|
||||
|
||||
@ -153,7 +154,7 @@ laptop.register_hardware("laptop:cube", {
|
||||
description = "CUBE PC",
|
||||
infotext = "CUBE PC",
|
||||
sequence = { "off", "on"},
|
||||
custom_theme = "Red",
|
||||
custom_theme = "Shell",
|
||||
hw_capabilities = { "hdd", "floppy", "net", "liveboot" },
|
||||
node_defs = {
|
||||
["on"] = {
|
||||
|
6
os.lua
6
os.lua
@ -59,8 +59,10 @@ end
|
||||
|
||||
-- Set current theme
|
||||
function os_class:set_theme(theme)
|
||||
if laptop.themes[theme] and self.sysdata then
|
||||
self.sysdata.theme = theme
|
||||
if laptop.themes[theme] then
|
||||
if self.sysdata then
|
||||
self.sysdata.theme = theme
|
||||
end
|
||||
self.theme = self:get_theme()
|
||||
self:swap_node()
|
||||
self:save()
|
||||
|
Loading…
x
Reference in New Issue
Block a user