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

Commit

Permalink
v2.0.0b7
Browse files Browse the repository at this point in the history
  • Loading branch information
Arubinu committed Feb 16, 2023
1 parent eb2c29b commit d4dca97
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Scripts-Manager",
"version": "2.0.0b6",
"version": "2.0.0b7",
"description": "A minimal Electron application",
"main": "main.js",
"scripts": {
Expand Down
3 changes: 3 additions & 0 deletions scripts/stream-flash/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ function create_window() {
win.loadFile(path.join(__dirname, 'flash', 'index.html')).then(() => {
set_opacity(_config.settings.opacity);
set_duration(_config.settings.duration);

win.setAlwaysOnTop(true, 'screen-saver');
win.setVisibleOnAllWorkspaces(true);
win.show();
});
setInterval(() => {
Expand Down
2 changes: 1 addition & 1 deletion scripts/stream-widgets/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
<div class="m-5">
<div class="columns is-horizontal is-narrow mt-2 mb-5">
<div class="column mt-2">
<label class="label">Screen to flash:</label>
<label class="label">Screen for widgets:</label>
</div>
<div class="column has-text-right">
<div class="is-inline-block screen">
Expand Down
3 changes: 3 additions & 0 deletions scripts/stream-widgets/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ function create_window() {

//win.webContents.openDevTools();
win.webContents.send('enabled', _config.default.enabled);
win.setAlwaysOnTop(true, 'screen-saver');
win.setVisibleOnAllWorkspaces(true);
win.show();
});
setInterval(() => {
Expand Down Expand Up @@ -99,6 +101,7 @@ function next_screen(index) {

const bounds = screens[_screen].bounds;
win.setPosition(bounds.x, bounds.y);
win.setMinimumSize(bounds.width, bounds.height); // fix
win.setSize(bounds.width, bounds.height);

win.webContents.send('flash');
Expand Down

0 comments on commit d4dca97

Please sign in to comment.