Comments (11)
I noticed that the overall colors are somewhat respected, just a different shade, I think the best way rather than enforce values is to let the user use their own bash colors
from hyper.
Thanks @rauchg! Really digging this whole stack. Wonderful job pulling this together! Going to submit a PR with the higher contrast one, since it feels like the right one right now.
// high contrast
this.term.prefs_.set('color-palette-overrides', {
'0': '#000000',
'1': '#ff0000',
'2': '#33ff00',
'3': '#ffff00',
'4': '#0066ff',
'5': '#cc00ff',
'6': '#00ffff',
'7': '#d0d0d0',
'8': '#808080',
'9': '#ff0000',
'10': '#33ff00',
'11': '#ffff00',
'12': '#0066ff',
'13': '#cc00ff',
'14': '#00ffff',
'15': '#ffffff'
});
// pastel
this.term.prefs_.set('color-palette-overrides', {
'0': '#272822',
'1': '#e06c75',
'2': '#98c379',
'3': '#e5c07b',
'4': '#61afef',
'5': '#c678dd',
'6': '#56b6c2',
'7': '#abb2bf',
'8': '#75715e',
'9': '#e06c75',
'10': '#98c379',
'11': '#e5c07b',
'12': '#61afef',
'13': '#c678dd',
'14': '#56b6c2',
'15': '#ececec'
});
from hyper.
We just have ugly defaults. If someone wants to suggest a beautiful theme, I'm all eyes 🙈
from hyper.
@dzannotti either way, even if it's respecting "blue" or "cyan" or whatever, the choice of default color is not a good one. There's little contrast and in general it could be nicer looking (more pastel for example.)
from hyper.
I looked through the term docs (not too helpful) and the source in Hyperterm. Am I being correct in that the way to alter the colours in the term window is to inject "user-css"?
this.term.prefs_.set('user-css', 'objectUrl');
from hyper.
Ultimately I always end up reading the source: https://github.com/dbkaplun/hterm-umdjs/blob/master/dist/index.js
Seems like you can pass a custom color palette through the preference system.
https://github.com/dbkaplun/hterm-umdjs/blob/master/dist/index.js#L10815
And these are the default colors: https://github.com/dbkaplun/hterm-umdjs/blob/master/dist/index.js#L577-L1236
Since we probably don't want to override all, you could do something like:
Object.assign({}, lib.colors.colorNames, {
blue: …
});
from hyper.
I could take this one and add some pastel defaults
from hyper.
I created one with pastel colors:
But I think a high contrast one looks more cool. It's keying off the cursor and the zeit.co design
from hyper.
wow they both look 😍
from hyper.
This great! Would the concept of default themes that can be toggled be outrageous?
I really enjoy solarized... http://ethanschoonover.com/solarized
from hyper.
@howardroark this was one of the biggest motivations for this project. Programmatic configuration of every aspect of the terminal through plugins =]
from hyper.
Related Issues (20)
- shell issue
- Unable to get local issuer certificate
- Fails to run on Raspberry Pi OS arm64 HOT 2
- wrong hyper modification HOT 1
- Typed text does not show and screen goes black on macOS Monterey 12.7.3
- Wrong NIC in the speed of data
- The character '_' is highlighted.
- How do I add to the Services TAB of macos?
- windows 10, when use split down / right ,and close, then crash
- [bug] Ctrl+Enter sends ASCII 13 \r instead of ASCII 10 \n
- Black terminal after waking up from sleep
- Unexpected ssh connection disconnection causes Hyper.app to be unresponsive
- Change the theme of Hyper to sync with the OS HOT 1
- once i enter a commond it is not showing any other command that i gave it in past
- Help me with me=y problem HOT 1
- terminal body shows x and y scrollbar when resized HOT 1
- Hyper does not highlight underscores
- top side dissapeared after installation of native-theme HOT 2
- Loading a Plugin locally, fail to import dependencies with "require" HOT 1
- How to disable font blurring in terminal 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 hyper.