Skip to content

Commit e8cefa6

Browse files
queadquead
authored andcommitted
1.9 - Preparing package, tray icons for 2.0
1 parent 12eb174 commit e8cefa6

16 files changed

+448
-264
lines changed

dist/assets/css/main.css

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -659,11 +659,12 @@ input[type="radio"]:checked + label .round-check:after {
659659

660660
.win-controls {
661661
margin-left: auto;
662-
display: flex;
662+
display: none;
663663
height: 25px;
664664
position: absolute;
665665
right: 0;
666666
top: 0;
667+
z-index: 9999;
667668
}
668669

669670
.win-controls button {
@@ -677,11 +678,11 @@ input[type="radio"]:checked + label .round-check:after {
677678

678679
.win-controls button span {
679680
transition: all 0.1s ease-out;
680-
color: var(--c-white);
681+
color: var(--c-black);
681682
}
682683

683-
.win-controls button:hover span, .win-controls button:active span {
684-
color: rgba(255, 255, 255, 0.7);
684+
.win-controls button:active span {
685+
color: rgba(0, 0, 0, 0.5);
685686
}
686687

687688
#win-close {

dist/index.html

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@
1212
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
1313
</head>
1414
<body>
15+
<header>
16+
<div class="win-controls">
17+
<button id="win-minimize"><span class="fa fa-window-minimize"></span></button>
18+
<button id="win-maximize"><span class="fa fa-window-maximize"></span></button>
19+
<button id="win-close"><span class="fa fa-close"></span></button>
20+
</div>
21+
</header>
1522
<app-yt>
1623
<div class="loading-app">
1724
<i class="fa fa-circle-o-notch fa-spin fa-2x fa-fw"></i>
@@ -20,10 +27,12 @@
2027
</app-yt>
2128

2229
<script>
23-
/*
30+
/*
2431
// Reload pentru NWJS (DE EDITAT)
2532
var path = 'assets/',
26-
fs = require('fs');
33+
fs = require('fs');
34+
35+
var maximized = false;
2736
2837
var win = nw.Window.get();
2938
@@ -41,22 +50,28 @@
4150
win.minimize();
4251
};
4352
44-
document.getElementById('win-maximize').o`nclick = function(){
45-
win.maximize();
46-
};
47-
48-
document.getElementById('win-unmaximize').onclick = function(){
49-
win.unmaximize();
53+
document.getElementById('win-maximize').onclick = function(){
54+
if (maximized) {
55+
win.maximize();
56+
maximized = true;
57+
} else {
58+
win.unmaximize();
59+
maximized = false;
60+
}
5061
};
5162
5263
document.getElementById('win-close').onclick = function(){
5364
win.close();
5465
};
5566
5667
win.on('maximize', function() {
57-
console.log('maximized');
68+
maximized = true;
5869
});
59-
*/
70+
71+
win.on('unmaximize', function() {
72+
maximized = false;
73+
});*/
74+
6075

6176
</script>
6277
<script type="text/javascript" src="inline.bundle.js"></script><script type="text/javascript" src="polyfills.bundle.js"></script><script type="text/javascript" src="styles.bundle.js"></script><script type="text/javascript" src="vendor.bundle.js"></script><script type="text/javascript" src="main.bundle.js"></script></body>

dist/inline.bundle.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)