Skip to content

Commit

Permalink
feat: add underline support
Browse files Browse the repository at this point in the history
  • Loading branch information
mauroreisvieira committed Apr 28, 2020
1 parent d27384c commit 8a7e62a
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 45 deletions.
17 changes: 9 additions & 8 deletions schemes/Scheme-Example.sublime-color-scheme
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
"active_guide": "var(cyan)",
"background": "var(background)",
"block_caret": "var(cursor)",
"bracket_contents_foreground": "var(yellow)",
"bracket_contents_options": "underline",
"brackets_foreground": "var(cyan)",
"brackets_options": "underline, glow",
"caret": "var(orange)",
"find_highlight": "var(yellow)",
"find_highlight_foreground": "var(background)",
Expand All @@ -34,26 +38,23 @@
"gutter_foreground": "color(var(foreground) alpha(0.2))",
"highlight": "var(yellow)",
"inactive_selection": "color(var(cyan) alpha(0.1))",
"inactive_selection_border": "color(var(cyan) alpha(0.1))",
"invisibles": "color(var(foreground) alpha(0.3))",
"line_diff_added": "var(diffAdded)",
"line_diff_deleted": "var(diffDeleted)",
"line_diff_modified": "var(diffModified)",
"line_diff_width": "2",
"rulers": "color(var(foreground) alpha(0.5))",
"line_highlight": "color(var(foreground) alpha(0.1))",
"misspelling": "var(red)",
"rulers": "color(var(foreground) alpha(0.5))",
"selection": "color(var(foreground) alpha(0.10))",
"selection_border": "var(cyan)",
"selection_corner_radius": "cut",
"selection_corner_style": "cut",
"shadow": "color(var(background) alpha(0.5))",
"stack_guide": "var(brown)",
"tags_options": "underline, glow",
"tags_foreground": "var(cyan)",
"brackets_options": "underline, glow",
"brackets_foreground": "var(cyan)",
"bracket_contents_options": "underline",
"bracket_contents_foreground": "var(yellow)"
"tags_options": "underline, glow"
},
"rules": [
{
Expand Down Expand Up @@ -225,13 +226,13 @@
{
"name": "MARKUP - Underline",
"scope": "markup.underline",
"font_style": "italic",
"font_style": "underline",
"foreground": "var(purple)"
},
{
"name": "MARKUP - Underline Link",
"scope": "markup.underline.link",
"font_style": "italic",
"font_style": "italic underline",
"foreground": "var(red)"
},
{
Expand Down
4 changes: 2 additions & 2 deletions src/common/markup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ export default [
name: 'MARKUP - Underline',
scope: ['markup.underline'],
settings: {
font_style: 'italic',
font_style: 'underline',
foreground: 'var(purple)',
},
},
{
name: 'MARKUP - Underline Link',
scope: ['markup.underline.link'],
settings: {
font_style: 'italic',
font_style: 'italic underline',
foreground: 'var(red)',
},
},
Expand Down
13 changes: 7 additions & 6 deletions src/globals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ export const defaultGlobals: IUi = {
active_guide: 'var(cyan)',
background: 'var(background)',
block_caret: 'var(cursor)',
bracket_contents_foreground: 'var(yellow)',
bracket_contents_options: 'underline',
brackets_foreground: 'var(cyan)',
brackets_options: 'underline',
caret: 'var(cursor)',
find_highlight: 'var(yellow)',
find_highlight_foreground: 'var(background)',
Expand All @@ -13,24 +17,21 @@ export const defaultGlobals: IUi = {
gutter_foreground: 'color(var(foreground) alpha(0.2))',
highlight: 'var(yellow)',
inactive_selection: 'color(var(cyan) alpha(0.1))',
inactive_selection_border: 'color(var(cyan) alpha(0.1))',
invisibles: 'color(var(foreground) alpha(0.3))',
line_diff_added: 'var(diffAdded)',
line_diff_deleted: 'var(diffDeleted)',
line_diff_modified: 'var(diffModified)',
line_diff_width: '2',
rulers: 'color(var(foreground) alpha(0.5))',
line_highlight: 'color(var(foreground) alpha(0.1))',
misspelling: 'var(red)',
rulers: 'color(var(foreground) alpha(0.5))',
selection: 'color(var(foreground) alpha(0.10))',
selection_border: 'var(cyan)',
selection_corner_radius: 'cut',
selection_corner_style: 'cut',
shadow: 'color(var(background) alpha(0.5))',
stack_guide: 'var(brown)',
tags_options: 'underline',
tags_foreground: 'var(cyan)',
brackets_options: 'underline',
brackets_foreground: 'var(cyan)',
bracket_contents_options: 'underline',
bracket_contents_foreground: 'var(yellow)',
tags_options: 'underline',
};
59 changes: 30 additions & 29 deletions src/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,48 +15,49 @@ export interface ISchemeSetting {
}

export interface IUi {
accent?: string;
active_guide?: string;
background?: string;
foreground?: string;
invisibles?: string;
caret?: string;
block_caret?: string;
line_highlight?: string;
misspelling?: string;
bracket_contents_foreground?: string;
bracket_contents_options?: string;
brackets_foreground?: string;
brackets_options?: string;
caret?: string;
find_highlight?: string;
find_highlight_foreground?: string;
fold_marker?: string;
minimap_border?: string;
accent?: string;
popup_css?: string;
phantom_css?: string;
sheet_css?: string;
foreground?: string;
guide?: string;
gutter?: string;
gutter_foreground?: string;
rulers?: string;
line_diff_width?: string;
highlight?: string;
inactive_selection?: string;
inactive_selection_border?: string;
inactive_selection_foreground?: string;
invisibles?: string;
line_diff_added?: string;
line_diff_modified?: string;
line_diff_deleted?: string;
line_diff_modified?: string;
line_diff_width?: string;
line_highlight?: string;
minimap_border?: string;
misspelling?: string;
phantom_css?: string;
popup_css?: string;
rulers?: string;
selection?: string;
selection_foreground?: string;
selection_border?: string;
selection_border_width?: string;
inactive_selection?: string;
inactive_selection_foreground?: string;
selection_corner_style?: string;
selection_corner_radius?: string;
highlight?: string;
find_highlight?: string;
find_highlight_foreground?: string;
guide?: string;
active_guide?: string;
stack_guide?: string;
brackets_options?: string;
brackets_foreground?: string;
bracket_contents_options?: string;
bracket_contents_foreground?: string;
tags_options?: string;
tags_foreground?: string;
selection_corner_style?: string;
selection_foreground?: string;
shadow?: string;
shadow_width?: string;
sheet_css?: string;
stack_guide?: string;
tags_foreground?: string;
tags_options?: string;
}

export interface IColors {
Expand Down

0 comments on commit 8a7e62a

Please sign in to comment.