Coder Social home page Coder Social logo

Comments (7)

moudey avatar moudey commented on May 23, 2024

• I will make a gallery of glyphs soon so you can choose the icons. For now you can refer to the glyph template in this link

• You can copy the glyph template to shell.shl for it to work.

• Currently main explorer and taskbar context menus are supported. There are plans to include all the explorer context menus with more options for filtering by window type.

from shell.

moudey avatar moudey commented on May 23, 2024

There is a glyphs embedded with Shell that are used by default.

More about glyphs Segoe MDL2 Assets, Segoe Fluent Icons

Use other external glyphs You can use this function

image.glyph(\uE006, "Segoe Fluent Icons")
image.glyph(\uE006, #f00, "Segoe MDL2 Assets")

from shell.

Marvinoo avatar Marvinoo commented on May 23, 2024

Pardon my limited understanding for this matter.
So I followed this link and intended to use some of that great set of glyphs but I don't seem to understand how to make them work.
So first, I downloaded the font, installed it on my Win10 and tried to use the unicode points inside of my Shell.shl to show the relevant icons in my windows context menu but failed to do that.

So once and for all, please show me by code snippet as an example how to replace that default 'Refresh' icon from Shell by the 'Sync' icon from Segoe Fluent Icons?

I'll use your snippet as a template guide to make any other icon changes. Thanks a lot in advance.

from shell.

moudey avatar moudey commented on May 23, 2024

Sorry, there is an issue that default shell glyphs skip user entered fonts, corrected with addition of image.fluent and image.mdl shortcut function,

static 
{
    item(where=@(this.id == id.refresh) [email protected](\uE895, "Segoe Fluent Icons"))
    item(where=@(this.id == id.refresh) image=image.glyph(\uE895, #f00, "Segoe MDL2 Assets"))

    //or

    item(where=@(this.id == id.refresh) [email protected](\uE895))
    item(where=@(this.id == id.refresh) [email protected](\uE895))

    //or
    //This function gives priority to "Segoe Fluent Icons" if present then "Segoe MDL2 Assets"
    item(where=@(this.id == id.refresh) [email protected](\uE895) ) 
}

This update will be released this week.

from shell.

moudey avatar moudey commented on May 23, 2024

Glyphs issue fixed, and support for most File Explorer context menus.

from shell.

moudey avatar moudey commented on May 23, 2024

Pardon my limited understanding for this matter. So I followed this link and intended to use some of that great set of glyphs but I don't seem to understand how to make them work. So first, I downloaded the font, installed it on my Win10 and tried to use the unicode points inside of my Shell.shl to show the relevant icons in my windows context menu but failed to do that.

So once and for all, please show me by code snippet as an example how to replace that default 'Refresh' icon from Shell by the 'Sync' icon from Segoe Fluent Icons?

I'll use your snippet as a template guide to make any other icon changes. Thanks a lot in advance.

@Marvinoo You can now change the icon of the refresh item through the following functions

shell {
    static {
        // by built-in glyphs
        item(where=@(this.id == id.refresh) image=\uE1AB))
        // or
        item(where=@(this.id == id.refresh) [email protected](\uE895))
    }
}

Work is currently underway to create a gallery of embedded glyphs.

from shell.

moudey avatar moudey commented on May 23, 2024

@Marvinoo You can now explore glyphs through this link

from shell.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.