FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Icons & buttons » Adjust buttons by swapping colours  () 1 Vote
Show: Today's Messages :: Unread Messages :: Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
Adjust buttons by swapping colours [message #160966] Sat, 07 November 2009 16:37 Go to next message
venus is currently offline  venus   Russian Federation
Messages: 30
Registered: August 2002
Location: Urals, Russia
Karma: 0
Member
add to buddy list
ignore all messages by this user

thank you for new version.
also i'm impressed with your new green theme. but looks like buttons colors G<->B swapped bit incorrectly (e.g. "profile" button). Smile i've grabbed your css and wrote simple script to change to green. try, it will not change yellow to red.

#!/usr/bin/php
<?php
if($im = imagecreatefromgif($argv[1])) {
  for ($c = 0; $c < imagecolorstotal($im); $c++) {
    $col = imagecolorsforindex($im, $c);
    if($col['blue'] > $col['green'])
      imagecolorset($im, $c, $col['red'], $col['blue'], $col['red']);
  }
  echo 'image colorized\n.';
  imagegif($im, $argv[1]);
  imagedestroy($im);
} else 
  echo 'colorizing failed\n.';
?>
Re: FUDforum 3.0.0 Released [message #160979 is a reply to message #160966] Sun, 08 November 2009 16:40 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 27
Senior Member
Administrator
Core Developer
remove from buddy list
ignore all messages by this user
Are you referring to this button: http://fudforum.org/forum/theme/default/images/msg_about.gif?
Re: FUDforum 3.0.0 Released [message #160987 is a reply to message #160979] Mon, 09 November 2009 05:27 Go to previous messageGo to next message
venus is currently offline  venus
Messages: 30
Registered: August 2002
Location: Urals, Russia
Karma: 0
Member
add to buddy list
ignore all messages by this user

naudefj wrote on Mon, 09 November 2009 02:40
Are you referring to this button: http://fudforum.org/forum/theme/default/images/msg_about.gif?

yes. the face on button was yellow. it will be red if just change blue and green components. here is my gif button after this script: index.php?t=getfile&id=5768&private=0
  • Attachment: msg_about.gif
    (Size: 0.98KB, Downloaded 2528 times)
Message by The Witcher is ignored  [reveal message]  [reveal all messages by The Witcher]  [stop ignoring this user] Go to previous message
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
Previous Topic: Retro pixel style 16x20px file/mime icons
Next Topic: quick reply button text
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Mar 31 09:07:12 EDT 2023

Total time taken to generate the page: 0.06976 seconds