Everything posted by Skitals
-
[Plugin] Theme Engine - a webGui styler
What elements in particular are you having trouble styling? I might have a look into it. What are your thoughts on including all your themes with the plugin? Or would you rather distribute them yourself via a zip url?
-
[Plugin] VFIO-PCI Config
A plugin to create and modify vfio-pci.cfg from the unRAID webGui. Allows you to bind PCI devices by address to the vfio-pci driver. Also displays IOMMU groupings and which devices support reset. Unbound USB controllers display USB devices connected to them. Bound devices will be available to pass through to your VMs under "Other PCI Devices" in the Edit VM Form View. Please see the release notes for 6.7.0-rc1 for more information on this binding method. Search for "VFIO-PCI Config" in Community Applications Github repository: https://github.com/Skitals/unraid-vfio-pci/ URL for manual plugin install: https://raw.githubusercontent.com/Skitals/unraid-vfio-pci/master/plugins/vfio.pci.plg
-
[Plugin] Theme Engine - a webGui styler
Ah, yes. I believe there is a 2048 character limit with the method I'm using to move data around. It will work fine editing the css file manually as you are doing. I will look into a workaround.
-
[Plugin] Theme Engine - a webGui styler
Can you save any changes, or only when trying to use custom variables? If you add just a few letters and hit apply, does it save? It's possible what you are inputting has special characters that are getting misinterpreted when the textarea is passed to the script.
-
[Plugin] Theme Engine - a webGui styler
Along the lines of what I said above, zip handling will now only extract files in the format *-*.cfg and *-*.css. Just pushed out another minor update.
-
[Plugin] Theme Engine - a webGui styler
I just pushed out an update that adds an option (checkbox) to overwrite existing files when importing a zip. My concern was that if a user customizes a theme, their work might get inadvertently overwritten if a theme pack or the like unknowingly contains a theme with the same file name. The code for importing from a url had little logic and would have unzipped literally any zip file into your themes directory. Now it will only extract .cfg and .css files from an archive. I'm new to all this programming stuff and I've quickly learned getting something to do what you want is only 10% of the work. The other 90% is plugging holes so a user doesn't break something doing something you didn't anticipate
-
[Plugin] Theme Engine - a webGui styler
I uploaded themes.zip to github, and you can load the whole themepack by pasting this url and hitting import: https://github.com/Skitals/theme-engine-styles/raw/master/ThemePackbyRaz.zip Note that the current behavior is that if a theme file already exists it wont get overwritten when importing a zip. So if you wanted to update a theme from a zip, you would need to delete it from Saved Themes first. How do you think that should be handled? Checkbox option to overwrite if file exists?
-
[Plugin] Theme Engine - a webGui styler
Note that if the zip file is in the format as exported from the plugin, they can be loaded directly from usb without extracting by putting them in the themes folder. That is themename-basename.zip containing themename-basename.cfg and (optionally) themename-basename.css.
-
[Plugin] Theme Engine - a webGui styler
I updated the first post with basic instructions and new screenshots.
-
[Plugin] Theme Engine - a webGui styler
If you could, uninstall the plugin and reinstall fresh to make sure your theme (that is included) looks right. Of course when you uninstall it deletes everything in the /boot/config/plugins/theme.engine folder, so make sure any of your work is backed up.
-
[Plugin] Theme Engine - a webGui styler
The update just rolled out. It might not look like much, but it was 4 days of work, 17 files changed, 829 insertions(+), 127 deletions(-). Hopefully there aren't TOO many bugs I didn't catch...
-
[Plugin] Theme Engine - a webGui styler
Here is a sample of what I mean. Of course you could use the php variables directly instead of declaring them in root, but either works.
-
[Plugin] Theme Engine - a webGui styler
Oh, I think I misunderstood. It is how I think you describe. I moved the base00-base0f variables into the gui so they can be edited with the color picker. A theme consists of the base config + custom theme css (zipped together in one file for sharing/importing). The original "custom.css" still exists and is independent of the theme.
-
[Plugin] Theme Engine - a webGui styler
My thought was instead of having the first 2 being separate files I would simply add "custom" color pickers to the advanced ui, that don't do anything but are available as variables in the custom styling section.
-
[Plugin] Theme Engine - a webGui styler
I like the idea, but there are still a lot of use cases that will require 2 files (custom styling beyond colors). Good news is I got importing a zip file from usb *or* url working. You will be able to throw up the zips in a github repository or somewhere and share the raw links.
-
[Plugin] Theme Engine - a webGui styler
I'm almost ready to release the update. I unfortunately couldn't get uploading to work so to install a theme a user still need to manually put the files in place. There is now theme-specific styling. It is editable in the gui hidden behind an advanced mode toggle. The theme-specific styling gets saved as a css file, so an advanced theme is composed of two parts. For example NordDark-black.cfg and NordDark-black.css. There is a link in advanced view to download both files in a zip. Would you mind if I included NordDark with the plugin? Attached is a preview toggled to advanced mode.
-
[Plugin] Theme Engine - a webGui styler
The update I'm working on lets you download your theme as a zip with the cfg + custom styling. I have that part working, need to add importing from a zip file. I also have custom styling and additional color options hidden behind an advanced mode toggle.
-
[Plugin] Theme Engine - a webGui styler
Looks awesome, I will check it out when I get home. I think my plan is to add an "advanced mode" and allow you to save save custom css in your theme cfg. That way you can export and share a theme like this with one file.
-
[Plugin] Theme Engine - a webGui styler
I added an option to enable/disable custom.css. If you leave Theme Engine "off" but custom.css "on", you can still use the colors/variables saved in the ui. I will probably hide this and custom variables behind an "advanced view" toggle once I figure out how to do that to match the rest of the unraid ui.
-
[Plugin] Theme Engine - a webGui styler
Just discovered a bit of an easter egg in my own plugin. custom.css gets parsed as php, and you can easily call values saved in Theme Engine. Take a look at the file /boot/config/plugins/theme.engine/theme.engine.cfg to see the name of the variables for the values you have saved. For example: [ThemeEngine] enabled="1" headertext="#9b9b9b" If you want to use the headertext value to theme another element, an example custom.css would be: .switch-button-background { background-color: <?php echo $ThemeEngine['headertext']; ?> !important; } This works because custom.css is included at the end /usr/local/emhttp/plugins/theme.engine/include.php where theme.engine.cfg is parsed.
-
[Plugin] Theme Engine - a webGui styler
Thanks, just pushed out a fix. Not exactly sure why it's not calling the function on DefaultPageLayout anymore, I included the function (with a different name) in the plugin.
-
[Plugin] Theme Engine - a webGui styler
**Beta** Theme Engine A plugin for the unRAID webGui Theme Engine lets you re-style the unRAID webGui. Instead of creating a whole new theme, it adjusts settings that override the theme you are already using. You can adjust as few or as many settings as you like. Mixing and matching the base themes with Theme Engine settings creates endless possibilities. Import one of the included styles, or remix and export your own. --- How to install Search for Theme Engine on Community Applications. -OR- the URL to install manually: https://github.com/Skitals/unraid-theme-engine/raw/master/plugins/theme.engine.plg --- How to use To load an included theme, select it under Saved Themes and hit Load. To import a theme (zip file) from the community, paste the url under Import Zip and hit Import. The theme is now available to Load under Saved Themes. To import a theme (zip file) from usb, place the zip file in the folder /boot/config/plugins/theme.engine/themes/ select it under Import Zip and hit Import. The theme is now available to Load under Saved Themes. Note that when you Apply changes to a theme, it applies to your current configuration but does not overwrite the Saved Theme. If you want to update the saved theme, check the checkmark next to "Export to Saved Themes" before hitting Apply. To save it as a new theme, change the Theme Name, check the checkmark, and hit Apply. To export your theme as a zip file, hit Apply to save any changes, toggle on Advanced View, and click "Download current confirguration as Zip File" at the bottom of the page. --- Screenshots Basic View: Advanced View: --- Advanced / Hidden Options You can inject custom css by creating the following files and enabling custom.css under advanced view. The files, if they exist, are included on every page just above `</style>` in the html head. The custom.css files are independent of the theme engine theme you are using. If custom.css is enabled, it will be included even if theme engine is disabled. /boot/config/plugins/theme.engine/custom.css Will be included in all themes. /boot/config/plugins/theme.engine/custom-white.css /boot/config/plugins/theme.engine/custom-black.css /boot/config/plugins/theme.engine/custom-gray.css /boot/config/plugins/theme.engine/custom-azure.css Will only be included when using the corresponding base theme.
-
[KERNEL]custom kernel build with treaks (2020.03.07 v6.8.3|5.5.8|4.19.108|NAVI|VEGA|NFSv4|R8125|Zen2)
Passing through onboard audio is a lost cause, unfortunately. Luckily I've always used a USB dac (astro mixamp pro) it it's no real loss to me.
-
Renaming webgui theme break ui elements
If you use any custom theme, or simply rename a stock theme, ui elements get broken on the syslinux configuration page. This is easily reproducible with the following: cp /usr/local/emhttp/plugins/dynamix/styles/default-white.css /usr/local/emhttp/plugins/dynamix/styles/default-test.css cp /usr/local/emhttp/plugins/dynamix/styles/dynamix-white.css /usr/local/emhttp/plugins/dynamix/styles/dynamix-test.css Select "Test" theme from Display Settings. Navigate to your-unraid-ip/Main/Flash?name=flash and it will look like the attached screenshot. There is a chunk of css hardcoded on that page that is not getting injected when the NAME of your theme is not default-white or default-black.
-
[KERNEL]custom kernel build with treaks (2020.03.07 v6.8.3|5.5.8|4.19.108|NAVI|VEGA|NFSv4|R8125|Zen2)
https://wiki.unraid.net/Building_a_custom_kernel As the warning notes this is very outdated, but the basic steps are the same. If you can't adapt this (substituting the proper packages, kernel source, headers, download the correct unraid package and applying the unraid .patches, etc) you are probably in over your head. https://gist.github.com/gfjardim/c18d782c3e9aa30837ff This script is slightly newer, which you can also analyze to see the basic steps. If you need guidance beyond that I would say building a custom kernel is ill advised.