diff --git a/Model.drawio b/Model.drawio
deleted file mode 100644
index 629b961..0000000
--- a/Model.drawio
+++ /dev/null
@@ -1 +0,0 @@
-7V1bc+K4Ev41VOU8kPI98BjIZGb3MHuyk9nM7KOCBWhiWxxZBJhfv5ItG2zJxgSMsx5XpSq4Jd/0tVqfultyzxz7m48ELBefsQu9nqG5m5551zMMfWAN2D8u2QqJMxSSOUGukO0Ej+gnFEJNSFfIhWGmIsXYo2iZFU5xEMApzcgAIXidrTbDXvauSzCHkuBxCjxZ+g25dBFLB8bNTv4JovkiuTN7wbjEB0ll8SbhArh4vScyP/TMMcGYxr/8zRh6vPWSdvn22/abN3lxPv7+Z/h/8Nfov1//eOrHF7s/5pT0FQgM6Jsv3X+6tz5PHp5mqz/+fnn83+Oy/xX3LUe8G90mDQZd1n7iEBO6wHMcAO/DTjoieBW4kF9WY0e7OhOMl0yoM+EPSOlWKANYUcxEC+p7opS9Btl+Zwd97VpLBX/zC15rw1RwtxG3iI+2+0cPkCAfUkiEMH4N/uw52A+0magX4hWZilN/vszuPz1ZP74vH+7/XGsfb59/74u21Sggc0hLGnRPM1ifgpg9I9myEwn0AEWv2acDQrfnab0dfuyHgFANZ9lTvgJvJe70lfW18DMMVhLO4Rr5Hgg4oDMc0ARy9vAj4KF5wH5PWdvxFh69QkIR61O3ooByoEfTBfLcCdjiFW+RkILpS3I0WmCCfrLLggRzVkyo0AjDydR45GcKHAkMWZ2HBDY9FU1ASEWdKfY8sAzRc/TAvIrPYEHBCFOK/eRCGSVN+250QAl+Sa2BnmpPVWXhrQE3e0jKcItSJ7GCifU0xfF6Z4p0R8gW+2bI0opVRNzuCzOXIJizRkjvZ5i5+1kV72c42dsBjwEfAApHvBlDSTHTV327rpqSrvbF2BBKusqam+7ppQdntFArwyWYomA+iercWTvJF/G6XITZuTMv0ogFcl0YRBpDAQWxUnE1WWIU0Kg97BH7Y6021q7tns0eaMyO9d0x++PVCR3jgCkXQJEWQaaxa8i1tkwZhVnUlFpY2skPa+E2C+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ho3jqDE4ni6c2OOSjfC+985gNSi/07SatUTS16+FwkOud9rvc1MKuiGbRxPFCn4OSafZd7uMn3cQwObjYxNDOfVVXHepWOqPbn1foqDd8E+sbEu2V9Lab6pXPCWJLcLpXuq4op9NtpVYDrE3vLusUfmV3gddJX77ia7RlVzTrdfBAlamHQ3jreUm1sPNZV9eNqutfnJIhp0A52CHBmO4PDAQsF/wTKbzGPw==
\ No newline at end of file
diff --git a/css/_splash-page.scss b/css/_splash-page.scss
index e731c7d..87f5abb 100644
--- a/css/_splash-page.scss
+++ b/css/_splash-page.scss
@@ -18,6 +18,9 @@
left:0;
top:0;
}
+ .splash-menu {
+ display: flex;
+ }
#editor-logo {
font-weight:bold;
@@ -63,17 +66,19 @@
}
#sp-quickstart-container {
- height:100%;
- max-height: 500px;
width:70%;
float:right;
padding:40px;
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
-moz-box-sizing: border-box; /* Firefox, other Gecko */
box-sizing: border-box; /* Opera/IE 8+ */
- overflow-y: scroll;
+ overflow-y: auto;
+
&::-webkit-scrollbar {
background: #232125;
width: 0.5em;
@@ -90,13 +95,33 @@
&::-webkit-scrollbar-corner {
background: #232125;
}
+
+ .mode-switcher {
+ margin-top: 2em;
+ font-size: 1.2em;
+ color: $basetext;
+ a {
+ font-weight: bolder;
+ color: white;
+ margin-left: 0.5em;
+ }
+
+ //show the correct info when the .advanced class is added
+ .advanced {display: none};
+ &.advanced-mode {
+ .basic {display: none}
+ .advanced {display: inline}
+ }
+ }
}
#sp-quickstart {
display:flex;
- flex-direction: row;
flex-wrap: wrap;
- height:100%;
+ align-content: flex-start;
+ overflow-y: auto;
+ min-height: 0;
+ flex: 1 1 0;
// Fancy scrollbar
&::-webkit-scrollbar {
@@ -126,6 +151,9 @@
.sp-template {
display: flex;
align-items: center;
+ height: 5em;
+ min-width: 5em;
+
text-transform: uppercase;
width:16%;
border-radius:5%;
@@ -156,11 +184,12 @@
}
}
+ /*
.sp-template:before {
content:'';
float:left;
padding-top:100%;
- }
+ }*/
#sp-newpixel {
-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
diff --git a/debug.log b/debug.log
deleted file mode 100644
index 3b8e60d..0000000
--- a/debug.log
+++ /dev/null
@@ -1 +0,0 @@
-[0114/110029.536:ERROR:directory_reader_win.cc(43)] FindFirstFile: The system cannot find the path specified. (0x3)
diff --git a/js/_editorMode.js b/js/_editorMode.js
index ccb8dcf..9879c5d 100644
--- a/js/_editorMode.js
+++ b/js/_editorMode.js
@@ -8,29 +8,14 @@ let modes = {
}
let infoBox = document.getElementById('editor-mode-info');
-let currentSplashButton = document.getElementById("sp-mode-palette").children[0].children[1];
-function splashMode(mouseEvent, mode) {
- if (currentSplashButton == undefined) {
- currentSplashButton = mouseEvent.target.parentElement;
- }
-
- if (mode !== pixelEditorMode) {
- // Remove selected class to old button
- currentSplashButton.classList.remove("sp-interface-selected");
- // Add selected class to new button
- mouseEvent.target.parentElement.classList.add("sp-interface-selected");
-
- // Setting the new mode
- pixelEditorMode = mode;
- }
-
- // Setting the new selected button
- currentSplashButton = mouseEvent.target.parentElement;
-}
+on('click', 'switch-editor-mode-splash', function (e) {
+ console.log('switching mode')
+ switchMode();
+});
function switchMode(mustConfirm = true) {
-
+ console.log('switching mode', 'current:',pixelEditorMode)
//switch to advanced mode
if (pixelEditorMode == 'Basic') {
// Switch to advanced ez pez lemon squez
@@ -41,6 +26,9 @@ function switchMode(mustConfirm = true) {
// Hide the palette menu
document.getElementById('colors-menu').style.right = '200px'
+ //change splash text
+ document.querySelector('#sp-quickstart-container .mode-switcher').classList.add('advanced-mode');
+
pixelEditorMode = 'Advanced';
}
//switch to basic mode
@@ -71,6 +59,10 @@ function switchMode(mustConfirm = true) {
// Move the palette menu
document.getElementById('colors-menu').style.right = '0px';
+
+ //change splash text
+ document.querySelector('#sp-quickstart-container .mode-switcher').classList.remove('advanced-mode');
+
pixelEditorMode = 'Basic';
}
}
diff --git a/js/_variables.js b/js/_variables.js
index aadeb48..41bf84b 100644
--- a/js/_variables.js
+++ b/js/_variables.js
@@ -5,7 +5,7 @@ var dragging = false;
var lastMouseClickPos = [0,0];
var dialogueOpen = true;
var documentCreated = false;
-var pixelEditorMode = "Advanced";
+var pixelEditorMode = "Basic";
//common elements
var brushPreview = document.getElementById("brush-preview");
diff --git a/views/pixel-editor-splash-page.hbs b/views/pixel-editor-splash-page.hbs
deleted file mode 100644
index 9732386..0000000
--- a/views/pixel-editor-splash-page.hbs
+++ /dev/null
@@ -1,42 +0,0 @@
-
{{title}}
-
-
-The Lospec Pixel editor is a free pixel art program that you can use right here
-in your web browser. Our goal was to create an easy to use, intuitive and
-unobtrusive pixel art application that you can use anywhere. Whether you're
-creating assets for a game or just want to make 8 bit art, this tool is an easy
-way to pixel fast.
-
-
-
-
-
-This application does not have all the features of more advanced desktop editor,
-but we will add more over time. It currently features a pencil, eraser, fill, pan, eyedropper
-and zoom tool. You can also easily adjust any colors in your palette. You can
-use any palette in our Palette List by clicking the pencil next to the palette
-title.
-
-
-
-This app currently only works on desktops, and requires a modern browser such as
-the latest versions of Firefox or Chrome.
-
-
-Enter app now {{svg "angle-right.svg" width="32" height="32"}}
-
-
-
-This app has been made in collaboration with contributors on GitHub. We welcome anyone to submit bugfixes and new features.
-
-Our Contributors:
-
-
-
-
-
-View on GitHub {{svg "github"}}
-
-
-
-
diff --git a/views/splash-page-popup.hbs b/views/splash-page-popup.hbs
index 2cecd55..d381df6 100644
--- a/views/splash-page-popup.hbs
+++ b/views/splash-page-popup.hbs
@@ -22,14 +22,6 @@