changeset 11:a6bde9cde187

Icon for the fullscreen button.
author Mikhail Kryshen <mikhail@kryshen.net>
date Sat, 02 Apr 2016 13:06:05 +0300
parents 5bb39198a9be
children 89fc4ef53637
files index.html resources/fullscreen.png src/Serpentron.st
diffstat 3 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/index.html	Sat Apr 02 12:24:52 2016 +0300
+++ b/index.html	Sat Apr 02 13:06:05 2016 +0300
@@ -43,8 +43,8 @@
          #fullscreen-button {
              float: right;
              padding: 0;
+             margin: 5px 0 0 0;
              border: none;
-             background: transparent;
              cursor: pointer;
          }
          #serpentron canvas {
Binary file resources/fullscreen.png has changed
--- a/src/Serpentron.st	Sat Apr 02 12:24:52 2016 +0300
+++ b/src/Serpentron.st	Sat Apr 02 13:06:05 2016 +0300
@@ -358,9 +358,10 @@
 						'Serpentron'});
 		SPAN: {#id -> 'status'. '1.0-beta2'}.
 		
-	(title BUTTON: {#id -> 'fullscreen-button'.
-					#title -> 'Toggle fullscreen'.
-					'▣'})
+	(title IMG: {#id -> 'fullscreen-button'.
+				 #title -> 'Toggle fullscreen'.
+				 #alt -> 'Toggle fullscreen'.
+				 #src -> 'resources/fullscreen.png'})
 		on: #click bind: [ Serpentron toggleFullscreen ].
 	
 	container := aSilk DIV: {#id -> 'field'}.