Page 1 of 1

LoadScript (CSS)

Posted: Wed Sep 13, 2023 8:47 am
by AZJIO
Try switching the "flat" style to black. The archive contains all the necessary files.
Download

Code: Select all

Procedure Callback(URL$, Success)
	Debug Success
EndProcedure

Procedure ButtonHandler()
	LoadScript("./data/flat.css", @Callback(), #PB_Script_CSS)
	LoadScript("./data/window.css", @Callback(), #PB_Script_CSS)
	LoadScript("./data/dgrid.css", @Callback(), #PB_Script_CSS)
;	LoadScript("./data/index.css", @Callback(), #PB_Script_CSS)
;	LoadScript("./data/font-awesome.min.css", @Callback(), #PB_Script_CSS)
; 	LoadStyle("./data/styles.css", @Callback())
EndProcedure

Re: LoadScript (CSS)

Posted: Thu Sep 14, 2023 11:39 am
by Dirk Geppert
Great! Many thanks for that! :D

Re: LoadScript (CSS)

Posted: Sat Sep 16, 2023 1:24 am
by AZJIO
You can replace the files, then you will have a black theme initially.
SpiderBasic\Libraries\javascript\dojo\dgrid\css\dgrid.css
SpiderBasic\Libraries\javascript\dojo\themes\flat\flat.css
SpiderBasic\Libraries\javascript\themes\flat\window.css

Re: LoadScript (CSS)

Posted: Wed Sep 27, 2023 12:26 pm
by Fred
That's very cool !

Re: LoadScript (CSS)

Posted: Wed Sep 27, 2023 1:03 pm
by Paul
Unfortunately SB's SetGadgetColor command becomes no longer usable.

Re: LoadScript (CSS)

Posted: Thu Oct 12, 2023 6:01 am
by AZJIO
Fred wrote: Wed Sep 27, 2023 12:26 pmThat's very cool !
You can add a new theme "FlatBlack". I already tried it, it works, but if black is enabled, then some of the controls do not switch to white when using LoadScript(). I may have used " !important" to force the color to be applied at a high priority. I also increased the font size for the menu, otherwise my finger would press two menu items at once.