-
+
diff --git a/src/assets/pages/styles/theme-dark.scss b/src/assets/pages/styles/theme-dark.scss
index 6157a95..6676762 100644
--- a/src/assets/pages/styles/theme-dark.scss
+++ b/src/assets/pages/styles/theme-dark.scss
@@ -18,4 +18,14 @@ $theme-colors: (
"paragraphtextcolorhover":#202022,
);
+.theme-button{
+ width:40px;
+ height: 30px;
+ background-size: contain;
+ background-color: transparent;
+ background-image: url("../../images/theme-toggle-dark.png");
+ cursor: pointer;
+}
+
+
@import "theme-base";
\ No newline at end of file
diff --git a/src/assets/pages/styles/theme-light.scss b/src/assets/pages/styles/theme-light.scss
index 76df3c2..fad37ac 100644
--- a/src/assets/pages/styles/theme-light.scss
+++ b/src/assets/pages/styles/theme-light.scss
@@ -18,4 +18,13 @@ $theme-colors: (
"paragraphtextcolorhover":#ffffff,
);
+.theme-button{
+ width:40px;
+ height: 30px;
+ background-size: contain;
+ background-color: transparent;
+ background-image: url("../../images/theme-toggle-light.png");
+ cursor: pointer;
+}
+
@import "theme-base";
\ No newline at end of file
diff --git a/src/ts_source/themes.ts b/src/ts_source/themes.ts
index abd849d..b667dbf 100644
--- a/src/ts_source/themes.ts
+++ b/src/ts_source/themes.ts
@@ -13,15 +13,15 @@ export module Themes {
applyTheme(initTheme);
let initToggle = $('#theme-toggle');
let initThemeEnum = getThemeFromValue(initTheme);
- initToggle.addClass(getButtonClassFromAppTheme(initThemeEnum));
+ // initToggle.addClass(getButtonClassFromAppTheme(initThemeEnum));
initToggle.on("click", () => {
let conf = Configurator.loadUserConfig(ConfigPaths.UserConfigName);
let toggle = $("#theme-toggle");
let themeValue = conf['theme'];
let currTheme = getThemeFromValue(themeValue);
let opposite = getOppositeTheme(currTheme);
- toggle.removeClass(getButtonClassFromAppTheme(currTheme));
- toggle.addClass(getButtonClassFromAppTheme(opposite));
+ // toggle.removeClass(getButtonClassFromAppTheme(currTheme));
+ // toggle.addClass(getButtonClassFromAppTheme(opposite));
applyTheme(opposite);
conf['theme'] = opposite;
Configurator.saveUserConfig(ConfigPaths.UserConfigName, conf);
diff --git a/src/ts_source/viewFactory.ts b/src/ts_source/viewFactory.ts
index b897cf4..e3bb04b 100644
--- a/src/ts_source/viewFactory.ts
+++ b/src/ts_source/viewFactory.ts
@@ -47,7 +47,7 @@ export function buildWebCardsFromConfig(configName: string) {
let key = keys[i];
let contentList = elementConfig[key];
let element = $(`#${key}`);
- console.log(element);
+
for (let j = 0, m = contentList.length; j, obj, append: boolean = f
);
loadTemplateSingle("web-card.mustache", model, (content: string, id: string) => {
- console.log(elem);
if (append) {
elem.append(content);
} else {
@@ -100,11 +99,9 @@ function getImagePathFromDocumentName(name: string): string {
function launchDocument(filename: string) {
let fullPath = FileUtils.getPathToDocument(filename);
- console.log(`Attempting to open file: ${fullPath}`);
shell.openItem(fullPath);
}
function launchWebsite(url: string) {
- console.log("Attempting to launch " + url)
shell.openItem(url);
}
\ No newline at end of file