Themes fixes - Shell is now default for CS-BOS

This commit is contained in:
Alexander Weber 2018-02-23 08:56:35 +01:00
parent c2032c6ecb
commit 3ef39211c3
3 changed files with 8 additions and 3 deletions

View File

@ -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

View File

@ -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
View File

@ -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()