X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=net.mograsim.preferences%2Fsrc%2Fnet%2Fmograsim%2Fpreferences%2FDefaultPreferences.java;h=446569fd025fb2493a11b6b402ea522234f35828;hb=b005eb64ccb8bb6913a38be81c256cb069d38580;hp=b843cf37c8fe864078906117bac658d46680cf85;hpb=9b0530074d07ba11b12c23df4370dd035da774b3;p=Mograsim.git diff --git a/net.mograsim.preferences/src/net/mograsim/preferences/DefaultPreferences.java b/net.mograsim.preferences/src/net/mograsim/preferences/DefaultPreferences.java index b843cf37..446569fd 100644 --- a/net.mograsim.preferences/src/net/mograsim/preferences/DefaultPreferences.java +++ b/net.mograsim.preferences/src/net/mograsim/preferences/DefaultPreferences.java @@ -9,20 +9,26 @@ public class DefaultPreferences extends Preferences { switch (name) { - case "net.mograsim.logic.ui.color.bit.one": + case "net.mograsim.logic.model.color.bit.one": return new ColorDefinition(BuiltInColor.COLOR_GREEN); - case "net.mograsim.logic.ui.color.bit.u": + case "net.mograsim.logic.model.color.bit.u": return new ColorDefinition(BuiltInColor.COLOR_CYAN); - case "net.mograsim.logic.ui.color.bit.x": + case "net.mograsim.logic.model.color.bit.x": return new ColorDefinition(BuiltInColor.COLOR_RED); - case "net.mograsim.logic.ui.color.bit.z": + case "net.mograsim.logic.model.color.bit.z": return new ColorDefinition(BuiltInColor.COLOR_YELLOW); - case "net.mograsim.logic.ui.color.bit.zero": + case "net.mograsim.logic.model.color.bit.zero": return new ColorDefinition(BuiltInColor.COLOR_GRAY); + case "net.mograsim.logic.model.color.background": + return new ColorDefinition(BuiltInColor.COLOR_WHITE); + case "net.mograsim.logic.model.color.foreground": + return new ColorDefinition(BuiltInColor.COLOR_BLACK); + case "net.mograsim.logic.model.color.text": + return new ColorDefinition(BuiltInColor.COLOR_BLACK); default: // TODO proper logging here... System.err.println("Unknown color name: " + name); - return new ColorDefinition(BuiltInColor.COLOR_BLACK); + return null; } } } \ No newline at end of file