How to keep Strapi theming for newly created component? - strapi

Strapi has no autosuggest component (can you believe it?) I've used well known npm package (input field with dropdown menu) for that purpose in my plugin, but it comes unstyled. Now I need somehow to apply Strapi theme for it, moreover, I need somhow to detect black/white theme. The only thing I can imagine is just to copy pure css from Chrome dev tools analyzer (but it not solves black/white theme problem). I can't blindly copy style name, because they use obfuscation. So simple task, but it seems impossible for now. How can I achieve described?

Related

Joomla 3.8: how to configure standard spacing properties?

I´m rookie in Joomla. I'd like to do a fine-adjustment in the presentation of a bunch of icons in a toolbar that I've created using logo/image components in the layout editor for a certain theme. These icons are being presented with a too wide spacement between one another, and it seems that the cause is the property flex in the css file nucleus.css (.size-5 element, according to inspections in Firefox).
I'd like to know how to resolve this spacement issue, perhaps changing paramenter's values in this css file, if there is no other way. Thanks for any help.

Is it possible to use w3.css with Vaadin?

I just have learned about vaadin and I'm watching tutorial about a CRUD TODO list in youtube. Vaadin uses Valo theme for css rendering that I found great but I'm wondering is it possible to use w3.css framework within vaadin vue code ?
I try googling but no answers.
It depends™
If you are asking: can is just replace Valo with W3.css the answer is most likely no, at least out of the box. The reason for this is, that Vaadin client side code emits the HTML-code you see in the browser and all style and class tags there are defined on their end. So what any theme for Vaadin must do, is to provide styling rules for that exact schema; so you would have to find a way to adapt. Or you have to put addStyleName all over your code (if it's btn in your CSS framework, it's v-button in Vaadin and also nested elements might be different etc).
Yet, if you just want to use the styles for some parts of your application (let's say, you want a fancy start page or add cards etc), then you can add the other CSS and use them together. Vaadin/Valo does a good job in isolating their styles from the rest of the page and also within their hierarchy (the theme name is a prefix to all Valo rules). Yet if the two themes then look great together is another story, but Valo itself allows for quite some tweaking just with variables put in SASS.

How to customize interface of Rocket Chat

I need to make some changes to the front-end of RocketChat. I've done a manual install on Ubuntu 16.04 and am new to the JS ecosystem. Simply editing files (such as programs/server/packages/rocketchat_lib.js) and redoing npm install doesn't seem to work.
How can this be done?
If you need some heavier changes like changing JS, menus and doing full customization you will have to build your own custom rocket.chat. It uses Meteor framework. You can find some guides here and talk to people on the rocket.chat demo server channel learn
To change your logo, background, and other settings related to UI, we need to log in as administrator and go to Administration area then Settings and Assets section and upload the relevant images there. And we can also make other UI related settings from the layout section, which can include content, colors, fonts, and more.
To customize the Rocket.Chat UI you can either modify the rocketchat-theme or rocketchat-ui packages directly, but if you’re keeping in sync with active development it would be easier to avoid conflicts by creating your own theme package.
You can add theme customisations to Rocket.Chat by just creating a Meteor package with your code, then adding it to the packages file.
Well Rocket Chat allows us to change the logo. It also allows us to add custom CSS rules and change basic colors.
To change the colors and CSS go to administration and then under settings go to layout.
To change the logo go to administration and then under settings go to assets
Most* use of color in Rocket.Chat can be customised by changing color settings under Administration > Layout > Colors
Also you can use own CSS styles and so on in under Administration > Layout
Editing Rocket.chat files directly is bad way how to do it.
Some reference a HOW-TO are here https://rocket.chat/docs/developer-guides/ui-and-theming

Making TextBox text theme aware

I created a page.i want to change the background of Textbox when theme of emulator is changed to light.The letters cant be visible while changing the themes.is there any solution?
If you use the default TextBox control inside Visual Studio it is fully theme aware. If you have set the colours yourself then you need to perform the theme aware changes in code behind.
For more information, please see the following :-
http://www.developer.nokia.com/Community/Wiki/ThemeawareWindowsPhoneapplication
I assume you are referring to TextBlock rather than TextBox (as the latter automatically has style support).
You should never declare a TextBlock without a Style attribute, such as Style={StaticResource PhoneTextNormalStyle}. A full list of available styles can be found on MSDN: Theme Resources for Windows Phone
Also of relevance is: How to: Apply Theme Resources for Windows Phone
NB: Due to the way Mango was designed, backing into your application after changing themes will not apply the new theme. You will need to restart the application to see the changed theme.
Update
Based on your screenshots, you have two choices:
Reskin ("Edit Template" in Blend) each of the controls that you use to redefine a style in which the various colour-related properties are hardcoded
Use an alternate, lighter, background image when in the white theme in order to improve the contrast. I've blogged about how you can define theme-aware resources (and also mentioned it on other SO questions).
Put simply, you can either submit to the theme or force it to remain the way you want it.
We can set a theme as default to our application.When we log in our application the phone theme will be changed to its suitable theme and when we log out change back to original
here s the link .

Making TinyMCE image pick dialog point to a default folder on Plone

Plone 4.1.
What would be the easiest way to make TinyMCE image picker dialog point to a site default folder (/image-bank) instead of current folder?
This + folder display as album would provide a rudimentary image bank support for Plone easily.
I'd hope to achieve this feature for
All Plone out of the box content types (ATContentTypes)
My custom AT content types
MY custom Dexterity content types
Portlet editor WYSIWYG (is it zope.formlib?)
If it's difficult to edit Python code all over the places, it's accetable just to a Javascript snippet patching TinyMCE settings on the client side.
Mikko: What a coincidence. I'm just trying to achieve the same thing. I managed to create a more specific adapter than `Products/TinyMCE/adapters/Upload/Upload`.
This new adapter changes the upload folder (by setting self.context) to the central-images-folder and then updates radio button listing (and image preview) with the central-folder images (and just uploaded image). This is done by defining an uploadOk method inside the new adapter.
However, to change the initial folder, I think the only way is to customize ploneimage.html.pt or ploneimage.js inside the skins/tinymce/plugins/ploneimage folder. But changing any of these two large files (which might change in the future), could make new releases of TinyMCE not to work with your changes. So you will be forced to re-customize them again.
My idea (which I already emailed this morning to Four Digits) is to provide this feature with TinyMCE out-of-the-box, via a configuration option. This way the package files would be always aware of this feature and future changes won't harm this new functionality.

Resources