Comments (5)
What about simply combining the default colorpicker with an opacity slider?
The default colorpicker might not be saving rgba, but converting hex to rgba is pretty easy and we've done it before on https://github.com/shoestrap/shoestrap/blob/c99f63bde78f8c0f4490a4cc3ce56d5f1ba410a0/lib/modules/core/module.php#L7-L28
All that function needs to become rgba is a value from an opacity slider!
from redux-framework.
@aristath Good idea. @ghost1227, thoughts?
from redux-framework.
Not a bad idea, in one way or another this concept will make an appearance in 3.1
from redux-framework.
Hi,
Here's the function I have created myself to convert hexcodes to RGB or RGBA: http://mekshq.com/how-to-convert-hexadecimal-color-code-to-rgb-or-rgba-using-php/
You can use it if you want of course.
I agree with @aristath.
from redux-framework.
@mekshq Just added your code as a validation. Hex to RGBA. You can add this to any color field, just add the argument:
'validation'=>'color_rgba'
I gave you credits in the code. Thanks.
from redux-framework.
Related Issues (20)
- How to set default values for typography field with Redux::set_option? HOT 1
- change redux default values on child theme HOT 4
- Warning count display Nan on left side for color menu HOT 1
- Attribute not working with text field HOT 4
- WordPress Backend is buggy HOT 6
- Backend is buggy- No Field ID is set HOT 8
- Project Icon Category Type Not Change HOT 1
- Bug on switch or button_set fields while in tab and zero/false value HOT 2
- Bug in Dimension Field HOT 3
- Repeater extension : create unique ID for each entry HOT 1
- Theme options resets and show default values after avg (1min) of editing in wp customizer HOT 6
- header logo did'nt change
- How to Combine plugin menu and submenu into one parent menu? HOT 1
- Page not loading HOT 1
- SEOLAND Theme Support Request - Service Page Sidebar Placement HOT 3
- Custom Fonts Extension not converting due to incorrect redux.io read/write permissions
- Redux Framework <= 4.4.17 - Unauthenticated JSON File Upload to Stored Cross-Site Scripting HOT 2
- Color Scheme not saving in customizer.
- Custom Font not converting. Fallback required.
- Google Font repo not generating updated fonts for Redux typography. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redux-framework.