[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4668: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4670: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4671: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4672: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
XWidgetSoft Forum • View topic - [SOLVED] Change color of a roundline by script ??

XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently April 19th, 2024, 12:43 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: March 28th, 2015, 10:31 am 
Offline

Joined: March 28th, 2015, 10:24 am
Posts: 3
Hi,

I am trying to change the color of a roundline by script.

I've been using this line of code :

roundline1.fore.draw.solidcolor.color = rgba(150,150,150,255);

Unfortunately, it doesn't work ... anybody has an idea ?


Thanks in advance !


Last edited by rafgeraedts on April 9th, 2015, 3:12 am, edited 1 time in total.

Top
 Profile  
 
PostPosted: March 28th, 2015, 10:35 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
No need to use script for this! The designer has all the necessary color options . :)

All the available options are under the "Fill Color" tab.

_________________
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/


Top
 Profile  
 
PostPosted: March 28th, 2015, 11:48 am 
Offline

Joined: March 28th, 2015, 10:24 am
Posts: 3
Thanks jimking, but I'm making a disk widget where the color of the roundline changes dynamicly with the disk percentage.

I see no other way than to use script ... ?


Top
 Profile  
 
PostPosted: March 28th, 2015, 12:51 pm 
Offline

Joined: June 18th, 2012, 12:07 am
Posts: 268
Try

roundline1.fore.solidcolor.color = rgba(0,0,255,255);
// for the fore, don't forget to tick enable solid color

roundline1.back.color = rgba(0,0,255,255);
// for the back


Top
 Profile  
 
PostPosted: March 28th, 2015, 1:23 pm 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
Could you pls upload a screenshot from what you want to do?
Because the designer has the option to add gradient colors..
It will be also useful to upload your xwp to check it..

_________________
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/


Top
 Profile  
 
PostPosted: March 29th, 2015, 9:48 pm 
Offline
User avatar

Joined: March 8th, 2013, 10:27 pm
Posts: 353
You are doing it wrong the property is

roundline1.fore.color = rgba(120,120,120,255)

_________________
Life is a myriad game... Just play it!


Top
 Profile  
 
PostPosted: March 31st, 2015, 4:33 am 
Offline

Joined: March 28th, 2015, 10:24 am
Posts: 3
Hi guys,


Thanks for your input, it was really useful !

Digigamer, your peace of code did it !! Although I changed my initial plan and went for gradient instead, but same thing :

roundline1.fore.gradient.stopcolor = rgba(255,0,0,255);

Attached is a screenshot of the final result. My 9 hard drives color-coded to 50% green, then to 75% yellow and red above 75%. When mouse over the disk name, the full name appears on top.

:D


Attachments:
DiskWidget.jpg
DiskWidget.jpg [ 72.15 KiB | Viewed 2594 times ]
Top
 Profile  
 
PostPosted: March 31st, 2015, 9:54 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
Great! When the widget is ready please post it in the "Share your creations" :)
(use the attach option to upload the .xwp file)

_________________
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 75 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

Powered by phpBB® Forum Software © phpBB Group