Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

icons in front of files too? #174

Open
whuhacker opened this issue Mar 31, 2014 · 13 comments
Open

icons in front of files too? #174

whuhacker opened this issue Mar 31, 2014 · 13 comments

Comments

@whuhacker
Copy link

Soda theme is able to use folder icons in the sidebar. However it may confused me since there's no icons in front of files.

image

Sometimes I wrongly thought index.html belongs to the folder js, while actually they are in the same level. So can we add icons to files as well as folders?

Atom.io solved this problem nicely.

image

@barts
Copy link

barts commented Apr 7, 2014

+1

@jbrooksuk
Copy link

This is now a feature of Sublime Text Dev 3062. In the default theme, icons are stored in an icons directory. https://dl.dropboxusercontent.com/u/7323096/icons.zip

From there, the sublime-theme file includes this:

{
    "class": "icon_file_type",
    // layer0.texture is filled in by code with the relevant icon name
    "layer0.opacity": 1.0,
    "content_margin": [8, 8]
},
{
    "class": "icon_folder",
    "layer0.texture": "Theme - Default/icons/folder.png",
    "layer0.opacity": 1.0,
    "content_margin": [8, 8]
},
{
    "class": "icon_folder",
    "parents":
    [
        { "class": "tree_row", "attributes": ["expanded"] }
    ],
    "layer0.texture": "Theme - Default/icons/folder_open.png",
},
{
    "class": "icon_folder_loading",
    "layer0.texture":
    {
        "keyframes":
        [
            "Theme - Default/icons/spinner7.png",
            "Theme - Default/icons/spinner6.png",
            "Theme - Default/icons/spinner5.png",
            "Theme - Default/icons/spinner4.png",
            "Theme - Default/icons/spinner3.png",
            "Theme - Default/icons/spinner2.png",
            "Theme - Default/icons/spinner1.png",
            "Theme - Default/icons/spinner.png",
        ],
        "loop": true,
        "frame_time": 0.075,
    },

    "layer0.opacity": 1.0,
    "content_margin": [8, 8]
},

Adding this to Soda should be straight forward now.

@jbrooksuk
Copy link

A bit more info regarding sidebar icons can be found here.

@buymeasoda
Copy link
Owner

Nice. I'm even more excited that there's been an update for ST, been so long. Will take a look at this new stuff.

@evanpurkhiser
Copy link

👍 for folder icons. Exciting stuff!

@pryley
Copy link

pryley commented May 6, 2014

Here you go (Soda Light 3 with sidebar icon support):
https://github.com/pryley/soda-theme

@NeQuissimus
Copy link

Looks good, @pryley
Could you do dark, too, and send a pull req? :D
Otherwise I'll have to clone your repo and do it myself xD

@buymeasoda
Copy link
Owner

I've updated Soda Theme to utilise the new ST3 support for folder icons, and added the default spinner UI from the base theme to both light and dark.

One challenge I've found with the current file type icons implementation is that it only allows icons to be loaded from a single set of locations, which means it's currently not possible to have separate dark and light versions.

As a result, I'm leaving file icons out of the theme temporarily until I can find a solution.

I've posted about it in following thread: http://www.sublimetext.com/forum/viewtopic.php?f=2&t=15971&p=60102#p60102

@jbrooksuk
Copy link

You could write a plugin to do write a separate tmPreferences based on the theme?

Sent from my iPhone

On 7 May 2014, at 07:54, Ian Hill [email protected] wrote:

I've updated Soda Theme to utilise the new ST3 support for folder icons, and added the default spinner UI from the base theme to both light and dark.

One challenge I've found with the current file type icons implementation is that it only allows icons to be loaded from a single set of locations, which means it's currently not possible to have separate dark and light versions.

As a result, I'm leaving file icons out of the theme temporarily until I can find a solution.

I've posted about it in following thread: http://www.sublimetext.com/forum/viewtopic.php?f=2&t=15971&p=60102#p60102


Reply to this email directly or view it on GitHub.

@Grawl
Copy link

Grawl commented Oct 29, 2014

@pryley thank you for your work! I just unzipped a zipball of your repo into ~/Library/Application Support/Sublime Text 3/Packages/User/soda-theme-master and here they are!

2014-10-30 0 53 42

@Fuxy22
Copy link

Fuxy22 commented Jun 21, 2015

👍

@ekazyam
Copy link

ekazyam commented Aug 31, 2015

Good!

@nvoronchev
Copy link

Here is the wide set of sidebar icons: SetiUI Icons. To install it one should simple copy files from repo into User directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests