Simple Machines Community Forum

SMF Support => SMF 2.1.x Support => Topic started by: Isa.F on November 26, 2014, 07:40:53 AM

Title: New Post icon
Post by: Isa.F on November 26, 2014, 07:40:53 AM
Hi!

I'm not sure if you are already helping in this questions. I'm testing this beta version in my computer, and I cant find a way to change de New Post icon in the boards (like the attached picture in this post). I can see the other images in the images file, but not this New Post Icon.

The only image I can find in the files, is the one that I also a atteched in this post, one that has the name "boardicons" but it is an image that includes several icons in the same image... I'm confused...

Is there a way to change this icon?

Thank's, and sorry for my english...
Title: Re: New Post icon
Post by: Arantor on November 26, 2014, 07:43:24 AM
If you look in Themes/default/images/boardicons.png you will see the 4 board icons.

Changing the size would also require changing the following in Curve 2's CSS:
div.icon span {
background: url(../images/boardicons.png) no-repeat 0 0;
display: inline-block;
width: 45px;
height: 45px;
}
div.icon span.board_on {
background-position: 0 0;
}
div.icon span.board_on2 {
background-position: -45px 0;
}
div.icon span.board_off {
background-position: 0 -45px;
}
div.icon span.board_redirect {
background-position: -45px -45px;
}
Title: Re: New Post icon
Post by: Kindred on November 26, 2014, 08:15:41 AM
specifically -- most images and icons in 2.1 are done using what is called "Sprites"

this means that (in this case) the icon used in a specific space is defined as one specific "slice" from an image which includes all 4 variations of the image -- which "slice" is displayed depends on the defined CSS container

So - instead of on.gif, on2.gif, off.gif and redirect.gif -- we now have a single image with all four variations -- and the CSS for the "block" defines which one is actually displayed on the site
Title: Re: New Post icon
Post by: Arantor on November 26, 2014, 08:24:23 AM
Indeed, and I have no regrets over changing this, either ;)
Title: Re: New Post icon
Post by: Kindred on November 26, 2014, 09:30:29 AM
oh, heck no...   no regrets and no issues from my view - sprites is the way to go for standard icons, in general.

fewer files, smaller archives, etc...
Title: Re: New Post icon
Post by: Arantor on November 26, 2014, 09:59:21 AM
Fewer files, smaller archives, faster loading, at a cost of making customisation a touch harder.
Title: Re: New Post icon
Post by: Kindred on November 26, 2014, 10:51:29 AM
hmmm....   dunno about "harder". I'd say, rather "different"

It definitely takes a little more thought "up front" so to speak, but applying updated images to the spites and to the site is pretty much the same.
Title: Re: New Post icon
Post by: Antechinus on November 26, 2014, 01:56:08 PM
Are you making a pack of  PSD's available? Beginners are often a bit bamboozled by sprites. PSD's with guides already set up would make things easier (or .xcf for GIMP).
Title: Re: New Post icon
Post by: Arantor on November 26, 2014, 01:58:50 PM
No PSD exists for the main sprite; I don't know if Gary has one for those icons though.

I didn't see any point in making a PSD or XCF out of the fact that all I did was copy/paste out of the Fugue set...