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 :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Adjust buttons by swapping colours [message #160966] Sat, 07 November 2009 21:37 Go to next message
venus is currently offline  venus   Russian Federation
Messages: 30
Registered: August 2002
Location: Urals, Russia
Karma: 0
Member

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 21:40 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
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 10:27 Go to previous messageGo to next message
venus is currently offline  venus
Messages: 30
Registered: August 2002
Location: Urals, Russia
Karma: 0
Member

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 2877 times)
icon6.gif  Re: FUDforum 3.0.0 Released [message #161292 is a reply to message #160979] Thu, 03 December 2009 18:47 Go to previous message
The Witcher is currently offline  The Witcher   United States
Messages: 675
Registered: May 2009
Location: USA
Karma: 3
Senior Member
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!"
  Switch to threaded view of this topic Create a new topic Submit Reply
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: Sun Dec 01 05:12:59 GMT 2024

Total time taken to generate the page: 0.02356 seconds