Orchard - How to set current theme from recipe - orchardcms

I need to set a theme as current from an Orchard recipe.
The theme is already enabled through the command theme activate "KrakeDefaultTheme".
I know that I can use the element <Theme packageId="ThemeName" current="true" /> to download a theme from the gallery and set it as current, but I don't need to download it, it's a custom theme that I made and it's already in the Themes folder.
Is there any way to do it?

The theme activate command will set your theme as the current theme. And you can execute this from your recipe using the <command> element
<Command>
theme activate "KrakeDefaultTheme"
</Command>

Related

How do I change CSS in Magento 2?

The website has a blog and I want to make a font a bit larger. How do I find the right CSS to change?
I used to do it in WordPress. You would just go inspect element, find .body and change font-size to 16px or whatever you want.
In Magento2 everything is in line 2.
Answer: You need to install gulp. After you install gulp you have to find where he stores his CSS. After that you need to run gulp so he can process it and viola.
The answer to your question is :
You should not edit/modify files within pub/* or vendor/* directory.
Pub is for deployment and vendor is for default structure, which you
override via your template or custom modules. Instead:
create a new theme inside app/design/frontend/{vendor}/{yourTheme}/. You can use Blank or Luma
theme. You can also create new theme which inherites from Blank
(inheritance is defined within theme.xml). If you are already using
some theme then skip this step.
edit .less within your theme so the changes stay visible and don't get replaced when clearing the cache or upgrading the system.
Use grunt to compile your .less into deployment files.
You can also setup sourcemaps to pin point your styling within the theme .less files so you can be more productive.
See here: https://magento.stackexchange.com/a/96480
Personally i would advise you not to modify an installed theme, because after an update you will probably need to do it again.
If you know some CSS it should not be hard to make it in another theme.
Does it help ?
Solution: You need to install gulp. After you install gulp you have to find where he stores his css. After that you need to run gulp so he can process it and viola.

How to set dark ui theme in monodevelop > 4.0

I'm using unity 5.4 on linux and it comes with monodevelop 5.9.6. I want to change UI theme (not editor theme) to dark but there's no option like pointed out on
http://lebagage.free.fr/indexa527.html?Reminders:Development:Monodevelop_-_Change_to_dark_theme
There's no Edit->Preferences->Visual Style->User Interface Theme
Another approach is to change gtkrc. I found a gtkrc inside bin/ directory but replacing that with gtkrc on
https://www.3dbuzz.com/forum/threads/200975-Turn-MonoDevelop-into-a-nice-Dark-Theme-IDE
doesn't make a change.
Any avaliable solution?
If you're using flatpak builds, there is a new version (6.1.1.15-2) which includes a dark theme:
Commit: Add a module for Dark theme.
Go into tools->options->syntax highlighting. Weird place for it to be, I know.

how to insert an image on the home page which can be edited later?

I am working with OpenCart 2.0.1.1.
I want to add an image on the homepage which can be later edited.
So Could anyone give me some step by step guide to create such thing ?
You can use below solution for adding image -
Go to Extensions > Modules > HTML Content (If not installed then install it.Click Edit button at the right).
Enter Module Name (put any name to recognize it).
Click Code View button </> in Content area visual editor to switch editor to HTML mode.You can add images here.
Make Status as Enabled. Save it.
Now Go to System> Design > Layouts and edit Home layout and add above created module to it.

Where is my themes folder on windows 10?

I am trying to change the color of my indents but I can not find my themes folder at all, both in the programs folder and the %appData% folder. I only have the one theme which does not change anything when I edit it.
I want to change the indents to have the following colors...
<key>guide</key>
<string>#FF0000</string>
<key>stackGuide</key>
<string>#00FF00</string>
<key>activeGuide</key>
<string>#0000FF</string>
Many thanks in advance,
Do you have a value assigned to the "theme" key in your Preferences.sublime-settings file?
If not, the default setting is "theme": "Default.sublime-theme"
You can edit Default.sublime-theme with the following process:
Install:
PackageResourceViewer
Open the command palette & run:
PackageResourceViewer: Open Resource
Select:
Theme - Default
Update & Save Default.sublime-theme
SublimeText will automatically create a user instance of the file, leaving the original file intact.
The user instance will override the original file.

Orchard v1.6: customising a theme

New to Orchard in that I just started to play around with it in the past few days. My question is about customising a theme (in this instance the Bootstrap one that can be installed from the gallery)
I tried to have a look and see if there was a non-source code way of doing it but was unable to find this way of doing it so I went spelunking through the theme folder and edited the Layout.cshtml file myself. Is this 'wrong' or is there another 'supported' way of doing it?
What I specifically wanted to do was to have the logo to the left and the menu to the right (see here for the OOB behaviour) and this was the way that I achieved it.
I'm sure if there are any updates to this theme then the customisations will be overwritten hence the question about a supported way to achieve this.
What you may want to do is look up Derived themes, you should create a new theme based off the theme you're modifying, then you can just modify the parts you want, and if the original theme needs updates or w/e you can update it without overwritting all your changes. I'm pretty sure this is the way you should be doing it.
This page should describe how that is done
http://docs.orchardproject.net/Documentation/Customizing-the-default-theme
This is how themes are customized.

Resources