Sign up here and you can log into the forum!

psychoTHC (1.05.04) v4.4 updated 12-28-11

Anything and everything related to OSD modifcation & theming.

Re: PsychoTHC OSD w/colorscheme options for 1.05.04   

Postby jumbalaya » Tue Sep 13, 2011 12:34 pm

is it just me...i don't see the diff between the two codes
jumbalaya
OSD Themer
 
Posts: 251
Joined: Fri Apr 16, 2010 7:12 pm

Re: PsychoTHC OSD w/colorscheme options for 1.05.04   

Postby b-rad.cc » Tue Sep 13, 2011 12:52 pm

recliq added the sudo, then i updated my post to include the sudo.
PM's are for private matters only, please post public matters on the forum to help others who might have the same issue.
:mrgreen:
User avatar
b-rad.cc
WDLXTV Team
 
Posts: 3002
Joined: Sat Apr 03, 2010 9:35 am
Location: New York

Re: PsychoTHC OSD w/colorscheme options for 1.05.04   

Postby jumbalaya » Tue Sep 13, 2011 1:00 pm

gotcha
jumbalaya
OSD Themer
 
Posts: 251
Joined: Fri Apr 16, 2010 7:12 pm

Re: PsychoTHC OSD w/colorscheme options for 1.05.04   

Postby jumbalaya » Tue Sep 13, 2011 1:23 pm

ok, i got it working now...you guys are smart :)

you can change in WEC, then power off/on for a new color. i was thinking that for changing listview numbers in WEC i only had to back out to the home screen then back in for this change to take effect. is there any way to make the color scheme work the same way or will you always need to power off/on.
*when i say power off i don't mean reboot*
:?:
jumbalaya
OSD Themer
 
Posts: 251
Joined: Fri Apr 16, 2010 7:12 pm

Re: PsychoTHC OSD w/colorscheme options for 1.05.04   

Postby KAD » Tue Sep 13, 2011 1:35 pm

hum ;)

if I read all that right, it should not have needed a power off/on to change the colorscheme

the restart block appears to umount anything mounted, then postsavehook, recalls the script to set the new colors

KAD
If you like my work please consider a Donation. Donate
Please read the appropriate documentation before posting questions! READ ME FAQ WIKI
User avatar
KAD
Global Moderator
 
Posts: 4011
Joined: Mon Apr 12, 2010 4:59 pm
Location: Seattle, WA USA

Re: PsychoTHC OSD w/colorscheme options for 1.05.04   

Postby jumbalaya » Tue Sep 13, 2011 1:46 pm

i would say i inserted some of the code into the wrong spots, that's prob where the issue is. can you/someone tell me what i have done wrong

Code: Select all
#!/bin/sh
### Written by PsychoTHC

### adds a "OSD: PsychoTHC" entry into Web-Frontends WDLXTV configurator
cp /osd/tmp/config-plugins/psychothc-osd_wec.php /tmp/config-plugins/psychothc-osd_wec.php

### changing thumb frames and progress bars
case $1 in
start)
       eval `grep -i \^PSYCHOTHC_THUMBPLAYBAR_COLOR_SCHEME= /conf/config`
    if [ -f "/osd/image/photo_thumb_frame_bg_f_color_${PSYCHOTHC_THUMBPLAYBAR_COLOR_SCHEME}.png" ] ; then
      mount -o bind "/osd/image/photo_thumb_frame_bg_f_color_${PSYCHOTHC_THUMBPLAYBAR_COLOR_SCHEME}.png" /osd/image/photo_thumb_frame_bg_f.png
      mount -o bind "/osd/image/video_thumb_frame_bg_f_color_${PSYCHOTHC_THUMBPLAYBAR_COLOR_SCHEME}.png" /osd/image/video_thumb_frame_bg_f.png
      mount -o bind "/osd/image/Video_Player_time_played_line_n_01_color_${PSYCHOTHC_THUMBPLAYBAR_COLOR_SCHEME}.png" /osd/image/Video_Player_time_played_line_n_01.png
      mount -o bind "/osd/image/music_player_time_played_line_n_01_color_${PSYCHOTHC_THUMBPLAYBAR_COLOR_SCHEME}.png" /osd/image/music_player_time_played_line_n_01.png
      mount -o bind "/osd/image/slideshow_player_time_played_line_n_color_${PSYCHOTHC_THUMBPLAYBAR_COLOR_SCHEME}.png" /osd/image/slideshow_player_time_played_line_n.png
      mount -o bind "/osd/image/slideshow_time_played_line_n_01_color_${PSYCHOTHC_THUMBPLAYBAR_COLOR_SCHEME}.png" /osd/image/slideshow_time_played_line_n_01.png
      logger -s -t `basename $0` "color scheme (${PSYCHOTHC_THUMBPLAYBAR_COLOR_SCHEME}) loaded for thumbs & playbars!"
   fi
   ;;

restart)
   umount -f /osd/image/photo_thumb_frame_bg_f.png /osd/image/video_thumb_frame_bg_f.png /osd/image/Video_Player_time_played_line_n_01.png /osd/image/music_player_time_played_line_n_01.png /osd/image/slideshow_player_time_played_line_n.png /osd/image/slideshow_time_played_line_n_01.png 2>/dev/null
   $0 start
   ;;

esac


...and

Code: Select all
<?php

if ((defined('WECVERSION')) && (WECVERSION >= 3)) {

$wec_options['PSYCHOTHC_THUMBPLAYBAR_COLOR_SCHEME'] = array('configname' => 'PSYCHOTHC_THUMBPLAYBAR_COLOR_SCHEME',

                                                  'configdesc' => "Change color for thumb frames and play bars:",

                                                  'longdesc' => "Default: Yellow/Black",

                                                  'group' => 'OSD: PsychoTHC',

                                                  'type' => WECT_SELECT,

                                                  'page' => WECP_OSD,

                                                  'availval' => array('1','2','3','4','5','6','7','8','9','10','11','12'),

                                                  'availvalname' => array('Blue','Red','Yellow','White','Green','Purple','Blue/Black','Red/Black','Yellow/Black','White/Black','Green/Black','Purple/Black'),

                                                  'defaultval' => '9',

                                                  'currentval' => '',
                                                  'postsavehook' => psychoTHC_colorscheme_reload);

}

function psychoTHC_colorscheme_reload($wec_option_arr,$value) {
   system("sudo /tmp/init.d/S68psychothc-colorscheme restart");
}                                     

?>
jumbalaya
OSD Themer
 
Posts: 251
Joined: Fri Apr 16, 2010 7:12 pm

Re: PsychoTHC OSD w/colorscheme options for 1.05.04   

Postby KAD » Tue Sep 13, 2011 2:13 pm

actually it looks ok to me, sometimes dmaosd cache requires to leave the screen, then return to see the changes, maybe that's all you did with the power off/on

KAD
If you like my work please consider a Donation. Donate
Please read the appropriate documentation before posting questions! READ ME FAQ WIKI
User avatar
KAD
Global Moderator
 
Posts: 4011
Joined: Mon Apr 12, 2010 4:59 pm
Location: Seattle, WA USA

Re: PsychoTHC OSD w/colorscheme options for 1.05.04   

Postby jumbalaya » Tue Sep 13, 2011 2:16 pm

yeah, that's what i did (back out and back in) originally and it didn't work. then i used the power button. i guess this will have to do for now ;) thanks, man.
jumbalaya
OSD Themer
 
Posts: 251
Joined: Fri Apr 16, 2010 7:12 pm

Re: PsychoTHC OSD w/colorscheme options for 1.05.04   

Postby essoG » Tue Sep 13, 2011 2:29 pm

keep on going boys
sounds great :lol:
- Never Drive Faster Than Your Guardian Angel Can Fly -
User avatar
essoG
DLX'er
 
Posts: 136
Joined: Thu Sep 16, 2010 7:19 am

Re: PsychoTHC OSD w/colorscheme options for 1.05.04   

Postby jumbalaya » Tue Sep 13, 2011 2:48 pm

if i make a change then go in and play a file and back out it will change the color :? seems odd.
jumbalaya
OSD Themer
 
Posts: 251
Joined: Fri Apr 16, 2010 7:12 pm

PreviousNext

Return to WDTV G2 & WDTV Live Theming

Who is online

Users browsing this forum: No registered users and 1 guest