Skip to content
This repository was archived by the owner on Sep 26, 2024. It is now read-only.

Commit d4dca97

Browse files
committed
v2.0.0b7
1 parent eb2c29b commit d4dca97

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Scripts-Manager",
3-
"version": "2.0.0b6",
3+
"version": "2.0.0b7",
44
"description": "A minimal Electron application",
55
"main": "main.js",
66
"scripts": {

scripts/stream-flash/script.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ function create_window() {
5656
win.loadFile(path.join(__dirname, 'flash', 'index.html')).then(() => {
5757
set_opacity(_config.settings.opacity);
5858
set_duration(_config.settings.duration);
59+
60+
win.setAlwaysOnTop(true, 'screen-saver');
61+
win.setVisibleOnAllWorkspaces(true);
5962
win.show();
6063
});
6164
setInterval(() => {

scripts/stream-widgets/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
<div class="m-5">
108108
<div class="columns is-horizontal is-narrow mt-2 mb-5">
109109
<div class="column mt-2">
110-
<label class="label">Screen to flash:</label>
110+
<label class="label">Screen for widgets:</label>
111111
</div>
112112
<div class="column has-text-right">
113113
<div class="is-inline-block screen">

scripts/stream-widgets/script.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ function create_window() {
6767

6868
//win.webContents.openDevTools();
6969
win.webContents.send('enabled', _config.default.enabled);
70+
win.setAlwaysOnTop(true, 'screen-saver');
71+
win.setVisibleOnAllWorkspaces(true);
7072
win.show();
7173
});
7274
setInterval(() => {
@@ -99,6 +101,7 @@ function next_screen(index) {
99101

100102
const bounds = screens[_screen].bounds;
101103
win.setPosition(bounds.x, bounds.y);
104+
win.setMinimumSize(bounds.width, bounds.height); // fix
102105
win.setSize(bounds.width, bounds.height);
103106

104107
win.webContents.send('flash');

0 commit comments

Comments
 (0)