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

Comments

Projects
None yet
@whuhacker

whuhacker commented Mar 31, 2014

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

This comment has been minimized.

barts commented Apr 7, 2014

+1

@jbrooksuk

This comment has been minimized.

jbrooksuk commented May 5, 2014

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

This comment has been minimized.

jbrooksuk commented May 5, 2014

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

@buymeasoda

This comment has been minimized.

Owner

buymeasoda commented May 5, 2014

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

This comment has been minimized.

EvanPurkhiser commented May 5, 2014

👍 for folder icons. Exciting stuff!

@pryley

This comment has been minimized.

pryley commented May 6, 2014

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

@NeQuissimus

This comment has been minimized.

NeQuissimus commented May 6, 2014

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

This comment has been minimized.

Owner

buymeasoda commented May 7, 2014

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

This comment has been minimized.

jbrooksuk commented May 7, 2014

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 notifications@github.com 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

This comment has been minimized.

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

This comment has been minimized.

Fuxy22 commented Jun 21, 2015

👍

@ekazyam

This comment has been minimized.

ekazyam commented Aug 31, 2015

Good!

@NVoronchev

This comment has been minimized.

NVoronchev commented Jan 8, 2017

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