Giter Site home page Giter Site logo

psu-themes's Introduction

PowerShell Universal themes

Look this gorgeous thang. Thanks @st3phhays!

image

@adamdriscoll will be integrating these themes into PSU but I've made them available here ahead of time if you're interested in using them now.

This is a project that smashes themes from windowsterminalthemes.dev into PowerShell Universal's underlying framework, Material UI.

You can learn how the theming engine was designed at Steph Hays' blog, which features this awesome demo video.

kbupdate-dashboard-samples.mp4

If you can't figure out how to run this in your own PowerShell Universal instance, here's a massive screenshot of the options.

image

psu-themes's People

Contributors

potatoqualitee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

psu-themes's Issues

Did I miss installation instructions?

Have PS Universal. Would like to try this, but I don't seem to see any installation instructions. Looks like examples depend on a Published folder named "assets" and three files in that folder, but where does the functions.ps1 file go? Same with colors.json, init.psm1, nav.json, etc. Where do the actual theme files go? Maybe I just missed install instructions. Thanks.

Navigation item rendering - with fix

Currently the object data returned to psu-themes.ps1 by sidebar.ps1 is null. This causes the sidebar navigation to not render any nav items.

The fix for this is to change line 1 of sidebar.ps1 to $nav = Get-Sidebar | ForEach-Object {$_ | select | Where-Object{$_.Enabled -eq $true}}

The data returning as null occurs owing to a functional pipeline rendering issue between assigned objects and pipeline objects.

for example if you assign $var = get-sidebar then in the next cmdlet do $nav = $var | where-object{$_.enabled -eq $true} you will get the correct return object. However if you try passing the output of Get-Sidebar directly to the same pipeline the primitive object is evaluated instead so you have to forcibly iterate over it to resolve the correct value.

Doing so will cause the sidebar navigation to render properly and then you won't need the image of all the themes for those who can't debug :)

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.