Comments (2)
Hi! I plan to do a few changes to the dashboard CSS in the future, however customisability does fit the mantra of what Tabliss is about, so I do support the idea. Maybe mark it as Advanced/supply a warning message under the CSS box that states changes this is for advanced usage and the styles may update from time to time (or I could add something to that effect).
As for actual implementation, you are correct about the two components, one for dashboard that handles the actual widget logic, and one for settings that goes in the settings menu. Now I don't think there is a nice "React way" to inject user-definable CSS into the global scope, so you may need to settle for a dirty document.createElement
hack to have it work. Just make sure you remove it again when the component is unmounted! Check the font widget for which lifecycle functions attach
and detach
are called from.
from tabliss.
If I started working on this, would you accept a PR? My idea is to supply a new widget with a textbox in the settings to paste the CSS, and then add a style
tag to the UI with the css inside.
I've not used react in the past (I've been in more in the Angular camp), so if you can think of a significantly better way, let me know. From what I understand by looking at the source, the widget has two elements: a default one (for the UI), and a settings one (for the left-side settings bar). It seems pretty straightforward.
from tabliss.
Related Issues (20)
- [Feature Request]: Enhanced Background Customization for Tabliss: Time-Based and Tab-Triggered Photo Changes
- Firefox new tab doesn't automatically get ready for typing HOT 2
- Most accessed websites above the wallpaper
- [Feature] Allow users to adjust locations of widgets HOT 1
- Bookmarks Toolbar hidden in Brave when set to "show on new tabs only"
- [Feature Request] Play a sound upon completing a todo item
- Unable to display Literature Clock HOT 1
- [Bug] Bible verses are not showing up HOT 1
- Search result auto complete option
- [Feature Request]: Collapse/expand widgets based on user-set time variables
- [Feature Request] Load JSON from web address as workaround to cookies. HOT 1
- Unsplash plugin unnecessary to useRotatingCache?
- Time Widget Color HOT 1
- inappropriate quotes
- Cannot figure out what is getting underlined when I hover over quick links (CSS question)
- [Feature Request] Option to change favicon and hide the "settings" icon.
- [Bug] Quotes from "thesaidso.com" don't load HOT 2
- Literature Clock is off by a few minutes
- "IP Info" is not working
- [Feature Request] Ability to load settings from a URL
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 tabliss.