OSDN Git Service

Update Kernel and Add Cursor Image[0.0.5]
authormtsgi <oq@live.jp>
Sat, 9 Feb 2019 10:31:16 +0000 (19:31 +0900)
committermtsgi <oq@live.jp>
Sat, 9 Feb 2019 10:31:16 +0000 (19:31 +0900)
app/document/default.html
app/help/default.html
app/settings/about.html
system.js
system/cursor-1.png [new file with mode: 0644]
system/cursor-2.png [new file with mode: 0644]
system/cursor-3.png [new file with mode: 0644]
system/theme/theme-default.css

index 106fb84..a0c9186 100644 (file)
         <div class='document-bs'>
                 &lt;a href="http://foo.bar/"&gt;リンクです&lt;/a&gt;
         </div>
-         上記のようにリンクを貼るとkitシステムはブラウザ(アプリ名:browser)を起動し、該当するページを表示しようと試みます。
+         上記のようにリンクを貼るとkitシステムは標準に設定されたブラウザ(環境変数 kit-default-browser)の引数にリンクを渡して起動し、該当するページを表示しようと試みます。
 
         <br><br>
 
index f2f3366..623ad30 100644 (file)
@@ -2,11 +2,6 @@
     <h3><span class='fa fa-question'></span> kitヘルプ</h3>
     ここにはkitデスクトップの使い方やヘルプ記事が掲載される予定です。<br>
     kitはまだbeta版です。未実装の機能が数多くあります。<br>
-    <span class='fa fa-cogs'></span>未実装機能<br>
-    ・ランチャー機能「アプリケーション」<br>
-    ・タスクマネージャー機能<br>
-    ・いくつかの設定項目<br>
-    これらは今後のアップデートで随時追加されます。<br>
     <span class='fa fa-question'></span>フォーラム<br>
     kitに関する情報交換・要望やバグの報告はこちらからお願いします。
     <div id="disqus_thread"></div>
index 9c51af5..a7b3820 100644 (file)
@@ -7,9 +7,9 @@
         $.getJSON("https://api.github.com/repos/mtsgi/kit/tags", function(data){
             let result = "github.com/mtsgi/kitから情報を取得しました。<br>";
             for( i in data ){
-                result += "[" +i+ "] v" + data[i].name;
+                result += "<strong>[" +i+ "] v" + data[i].name;
                 if( i == 0 ) result += "(最新)";
-                result += "<br>" + data[i].commit.sha + "<br>";
+                result += "</strong><div class='little'>" + data[i].commit.sha + "</div>";
             }
             System.alert("お使いのkitは" +System.version+ "です",result);
         });
index fc311b4..26b9bfc 100644 (file)
--- a/system.js
+++ b/system.js
@@ -3,6 +3,7 @@
 $( document ).ready( Load );
 
 function Load() {
+    S = System;
 
     if( !localStorage.getItem( "kit-pid" ) ) processID = 0;
     else processID = localStorage.getItem( "kit-pid" );
@@ -28,7 +29,7 @@ function Load() {
     }
     Notification.push( "kitへようこそ", localStorage["kit-username"] + "さん、こんにちは。", processID );
 
-    //イベントハンドラ定義
+    //イベントハンドラ
     $( "#desktops" ).click( function() {
         $( "#desktop-" + currentDesktop ).toggleClass( "selected-section" );
     } ).mousedown( function() {
@@ -248,16 +249,20 @@ function appDefine() {
     //app["welcome"] = new Application("welcome", "ようこそ", "far fa-comment-dots", "<div style='text-align:center;padding:4px 12px'><div style='font-size:22px'><strong>kit</strong>Desktop <span style='color:silver'>beta</span></div>バージョン0.0<br>キットデスクトップ環境へようこそ<br><a class='button close-this' onclick='page(\detail\)'>詳細</a> <a class='button' id='close-"+pid+"' onclick='close("+pid+")'>閉じる</a></div>", "0.0.0");
 }
 
-//システムクラス
 const System = new function() {
     this.version = "0.0.4";
-    this.username = localStorage.getItem( "kit-username" );
+    this.username = localStorage["kit-username"];
+
+    this.dom = (_pid, attribute) => {
+        return $("#winc" + _pid + " " + attribute);
+    }
 
     this.appCache = {};
     //引数
     this.args = {};
 
     this.shutdown = function() {
+        $( "#last-notification-close" ).click();
         $( "#kit-power-back" ).click();
         for( i in process ) {
             close( i );
@@ -338,4 +343,5 @@ const Notification = new function() {
 var process = {};
 var processID = 0, currentDesktop = 1;
 var currentCTX = "";
-var prevWindowIndex;
\ No newline at end of file
+var prevWindowIndex;
+var S;
\ No newline at end of file
diff --git a/system/cursor-1.png b/system/cursor-1.png
new file mode 100644 (file)
index 0000000..81e6774
Binary files /dev/null and b/system/cursor-1.png differ
diff --git a/system/cursor-2.png b/system/cursor-2.png
new file mode 100644 (file)
index 0000000..a0ae8e0
Binary files /dev/null and b/system/cursor-2.png differ
diff --git a/system/cursor-3.png b/system/cursor-3.png
new file mode 100644 (file)
index 0000000..e6c23e4
Binary files /dev/null and b/system/cursor-3.png differ
index 68d7dfb..8b1773a 100644 (file)
@@ -8,6 +8,7 @@ body {
        font-size: 16px;
        font-family: 'Noto Sans JP', sans-serif;
        overscroll-behavior: none;
+       cursor: url(../cursor-1.png), auto;
 }
 *::selection{
        background: rgba(0,0,0,.0);
@@ -64,7 +65,7 @@ section {
 }
 #lock-unl{
        display: block;
-       cursor: pointer;
+       cursor:url(../cursor-2.png), pointer;
        font-size: 16px;
        margin: 20px;
 }
@@ -131,7 +132,7 @@ header #header-right{
        float: right;
 }
 header a{
-       cursor: pointer;
+       cursor: url(../cursor-2.png),pointer;
        padding : 3px 4px;
 }
 header a:hover{
@@ -158,7 +159,7 @@ header a:hover{
 #kit-milp a{
        padding: 3px 6px;
        display: block;
-       cursor: default;
+       cursor:url(../cursor-1.png), default;
        overflow: hidden;
 }
 #kit-milp a:hover{
@@ -184,7 +185,7 @@ header a:hover{
        display: inline-block;
        color: white;
        text-shadow: 0px 1px 2px black;
-       cursor: default;
+       cursor:url(../cursor-1.png), default;
        margin : 10px 0px;
        padding : 5px;
        border-radius: 6px;
@@ -218,7 +219,7 @@ footer{
        padding-left: 58px;
 }
 footer #launch{
-       cursor: pointer;
+       cursor:url(../cursor-2.png), pointer;
        position: fixed;
        bottom: -2px;
        left: -2px;
@@ -234,7 +235,7 @@ footer #launch:hover{
        padding: 20px 16px;
 }
 footer .task{
-       cursor: default;
+       cursor:url(../cursor-1.png), default;
        box-sizing: border-box;
        display: inline-block;
        background: #ffffff;
@@ -276,7 +277,7 @@ footer .task-min:after{
 }
 #footer-noti{
        position: absolute;
-       cursor: pointer;
+       cursor:url(../cursor-2.png), pointer;
        padding: 6px;
        right : 4px;
        bottom : 5px;
@@ -288,7 +289,7 @@ footer .task-min:after{
        color: white;
        text-shadow: 0px 1px 3px black;
        position: absolute;
-       cursor: pointer;
+       cursor:url(../cursor-2.png), pointer;
        font-size: 22px;
        padding: 6px 5px;
 }
@@ -308,7 +309,7 @@ footer .task-min:after{
        padding: 40px 8px 50px 8px;
 }
 #notifications .notis{
-       cursor: default;
+       cursor:url(../cursor-1.png), default;
        border: 1px solid #a0a0a0;
        padding: 4px;
        border-radius: 5px;
@@ -334,7 +335,7 @@ footer .task-min:after{
        min-width : 200px;
        max-width: 100%;
        padding : 0px;
-       cursor: default;
+       cursor:url(../cursor-1.png), default;
        background: -moz-linear-gradient(45deg, rgba(255,201,248,1) 0%, rgba(186,239,255,1) 55%, rgba(150,255,157,1) 100%);
   background: -webkit-gradient(left bottom, right top, color-stop(0%, rgba(255,201,248,1)), color-stop(55%, rgba(186,239,255,1)), color-stop(100%, rgba(150,255,157,1)));
   background: -webkit-linear-gradient(45deg, rgba(255,201,248,1) 0%, rgba(186,239,255,1) 55%, rgba(150,255,157,1) 100%);
@@ -374,7 +375,7 @@ section .ui-draggable-dragging{
        color: black;
 }
 .wx{
-       cursor: default;
+       cursor:url(../cursor-1.png), default;
        padding: 8px 10px;
        float: right;
        position: absolute;
@@ -396,7 +397,7 @@ section .ui-draggable-dragging{
 }
 .kit-button{
        display: inline-block;
-       cursor: default;
+       cursor:url(../cursor-1.png), default;
        border-radius: 4px;
        line-height: 200%;
        background: dodgerblue;
@@ -415,7 +416,7 @@ section .ui-draggable-dragging{
        padding: 2px 10px 0px 10px;
 }
 .kit-selectable{
-         cursor: text;
+         cursor:url(../cursor-3.png), text;
 }
 .kit-selectable *::selection, .kit-selectable::selection{
     background: dodgerblue;
@@ -446,7 +447,7 @@ section .ui-draggable-dragging{
        border-bottom: 1px solid gray;
 }
 #task-ctx a{
-       cursor: default;
+       cursor:url(../cursor-1.png), default;
        display: block;
        border-bottom : 2px solid transparent;
 }
@@ -481,7 +482,7 @@ h3{
        font-weight: normal;
 }
 .btn{
-       cursor: pointer;
+       cursor:url(../cursor-2.png), pointer;
        border: 1px solid gray;
        margin: 4px 0px;
        padding: 2px 4px;
@@ -496,6 +497,7 @@ h3{
        font-size: 14px;
 }
 .textbox{
+       cursor:url(../cursor-3.png), text;
        outline: none;
        border: 1px solid #000000;
        font-size: 16px;
@@ -514,7 +516,7 @@ h3{
 .kit-hyperlink{
        color: dodgerblue;
        text-decoration: underline;
-       cursor: pointer;
+       cursor:url(../cursor-2.png), pointer;
 }
 #kit-power{
        display: none;
@@ -529,7 +531,7 @@ h3{
        text-align: center;
 }
 #kit-power a{
-       cursor: pointer!important;
+       cursor:url(../cursor-2.png), pointer!important;
        display: block;
        font-size: 30px;
        font-weight: 100;
@@ -576,7 +578,7 @@ h3{
        color: #ffffff;
 }
 #kit-tasks .task{
-       cursor: pointer;
+       cursor:url(../cursor-2.png), pointer;
        display: inline-block;
        background: #ffffff;
        padding: 4px 8px;
@@ -648,7 +650,7 @@ h3{
        right: 12px;
        width: 200px;
        border-radius: 4px;
-       cursor: default;
+       cursor:url(../cursor-1.png), default;
        box-shadow: 0px 1px 4px 0px rgba(0,0,0,.5);
 }
 #last-notification-close{
@@ -658,7 +660,7 @@ h3{
        display: inline-block;
        float: right;
        border-radius: 999px;
-       cursor: pointer;
+       cursor:url(../cursor-2.png), pointer;
        opacity: .8;
 }
 #last-notification-title{