This repository was archived by the owner on Sep 26, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +8
-2
lines changed
Expand file tree Collapse file tree 4 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 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" : {
Original file line number Diff line number Diff 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 ( ( ) => {
Original file line number Diff line number Diff line change 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 ">
Original file line number Diff line number Diff 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' ) ;
You can’t perform that action at this time.
0 commit comments