mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
Subpixel with opaque background color
This commit is contained in:
parent
8ebdaebdfa
commit
137db6cdd9
1 changed files with 3 additions and 2 deletions
|
|
@ -19,7 +19,8 @@ const CURSOR_STYLES = {
|
|||
|
||||
const getTermOptions = props => {
|
||||
// Set a background color only if it is opaque
|
||||
const backgroundColor = Color(props.backgroundColor).alpha() < 1 ? 'transparent' : props.backgroundColor;
|
||||
const needTransparency = Color(props.backgroundColor).alpha() < 1;
|
||||
const backgroundColor = needTransparency ? 'transparent' : props.backgroundColor;
|
||||
return {
|
||||
macOptionIsMeta: props.modifierKeys.altIsMeta,
|
||||
cursorStyle: CURSOR_STYLES[props.cursorShape],
|
||||
|
|
@ -28,7 +29,7 @@ const getTermOptions = props => {
|
|||
fontSize: props.fontSize,
|
||||
fontWeight: props.fontWeight,
|
||||
fontWeightBold: props.fontWeightBold,
|
||||
allowTransparency: true,
|
||||
allowTransparency: needTransparency,
|
||||
theme: {
|
||||
foreground: props.foregroundColor,
|
||||
background: backgroundColor,
|
||||
|
|
|
|||
Loading…
Reference in a new issue