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 :: Show 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: 3631
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
add to 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 1345 times)
icon6.gif  Re: FUDforum 3.0.0 Released [message #161292 is a reply to message #160979] Thu, 03 December 2009 13:47 Go to previous message
The Witcher is currently offline  The Witcher   United States
Messages: 662
Registered: May 2009
Location: USA
Karma: 2
Senior Member
add to buddy list
ignore all messages by this user
naudefj wrote on Sun, 08 November 2009 15:40
Are you referring to this button: http://fudforum.org/forum/theme/default/images/msg_about.gif?


I don't pretend to fully understand the code, but could something like this be used to keep the size of the install file small?
It sounds like an interesting idea if you can just change the colors bits without creating thousands of separate images in different languages.


"I'm a Witcher, I solve human problems; not always using a sword!"
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: Tue Dec 12 01:45:16 EST 2017

Total time taken to generate the page: 0.00782 seconds