Skip to content

Commit

Permalink
feat: add support for dark title_bar
Browse files Browse the repository at this point in the history
  • Loading branch information
mauroreisvieira committed Mar 28, 2023
1 parent 8c9921e commit 3d83870
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 164 deletions.
66 changes: 15 additions & 51 deletions Meetio Theme High Contrast.sublime-theme
Original file line number Diff line number Diff line change
Expand Up @@ -2662,90 +2662,54 @@
{
"class": "title_bar",
"settings": [
"!themed_title_bar"
],
"fg": [
"background",
255,
255,
255,
0.7
],
"bg": [
"background",
0,
0,
0,
0.4
"themed_title_bar"
],
"fg": "var(titleBarColor)",
"style": "system"
},
{
"class": "title_bar",
"settings": [
"!themed_title_bar"
"themed_title_bar"
],
"attributes": [
"file_dark"
],
"bg": [
"background",
255,
255,
255,
0.15
],
"bg": "var(titleBarBackground)",
"style": "dark"
},
{
"class": "title_bar",
"settings": [
"!themed_title_bar"
],
"attributes": [
"file_medium_dark"
],
"settings": [
"themed_title_bar"
],
"bg": "var(titleBarBackground)",
"style": "dark"
},
{
"class": "title_bar",
"settings": [
"!themed_title_bar"
],
"attributes": [
"file_medium"
],
"bg": [
"background",
0,
0,
0,
0.2
"settings": [
"themed_title_bar"
],
"bg": "var(titleBarBackground)",
"style": "light"
},
{
"class": "title_bar",
"settings": [
"!themed_title_bar"
],
"attributes": [
"file_light"
],
"fg": [
"background",
0,
0,
0,
0.7
],
"bg": [
"background",
0,
0,
0,
0.1
"settings": [
"themed_title_bar"
],
"bg": "var(titleBarBackground)",
"fg": "var(titleBarColor)",
"style": "light"
},
{
Expand Down
66 changes: 15 additions & 51 deletions Meetio Theme.sublime-theme
Original file line number Diff line number Diff line change
Expand Up @@ -2660,90 +2660,54 @@
{
"class": "title_bar",
"settings": [
"!themed_title_bar"
],
"fg": [
"background",
255,
255,
255,
0.7
],
"bg": [
"background",
0,
0,
0,
0.4
"themed_title_bar"
],
"fg": "var(titleBarColor)",
"style": "system"
},
{
"class": "title_bar",
"settings": [
"!themed_title_bar"
"themed_title_bar"
],
"attributes": [
"file_dark"
],
"bg": [
"background",
255,
255,
255,
0.15
],
"bg": "var(titleBarBackground)",
"style": "dark"
},
{
"class": "title_bar",
"settings": [
"!themed_title_bar"
],
"attributes": [
"file_medium_dark"
],
"settings": [
"themed_title_bar"
],
"bg": "var(titleBarBackground)",
"style": "dark"
},
{
"class": "title_bar",
"settings": [
"!themed_title_bar"
],
"attributes": [
"file_medium"
],
"bg": [
"background",
0,
0,
0,
0.2
"settings": [
"themed_title_bar"
],
"bg": "var(titleBarBackground)",
"style": "light"
},
{
"class": "title_bar",
"settings": [
"!themed_title_bar"
],
"attributes": [
"file_light"
],
"fg": [
"background",
0,
0,
0,
0.7
],
"bg": [
"background",
0,
0,
0,
0.1
"settings": [
"themed_title_bar"
],
"bg": "var(titleBarBackground)",
"fg": "var(titleBarColor)",
"style": "light"
},
{
Expand Down
22 changes: 11 additions & 11 deletions src/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1972,37 +1972,37 @@ export const rules = [
},
{
class: 'title_bar',
settings: ['!themed_title_bar'],
fg: ['background', 255, 255, 255, 0.7],
bg: ['background', 0, 0, 0, 0.4],
settings: ['themed_title_bar'],
fg: 'var(titleBarColor)',
style: 'system',
},
{
class: 'title_bar',
settings: ['!themed_title_bar'],
settings: ['themed_title_bar'],
attributes: ['file_dark'],
bg: ['background', 255, 255, 255, 0.15],
bg: 'var(titleBarBackground)',
style: 'dark',
},
{
class: 'title_bar',
settings: ['!themed_title_bar'],
attributes: ['file_medium_dark'],
settings: ['themed_title_bar'],
bg: 'var(titleBarBackground)',
style: 'dark',
},
{
class: 'title_bar',
settings: ['!themed_title_bar'],
attributes: ['file_medium'],
bg: ['background', 0, 0, 0, 0.2],
settings: ['themed_title_bar'],
bg: 'var(titleBarBackground)',
style: 'light',
},
{
class: 'title_bar',
settings: ['!themed_title_bar'],
attributes: ['file_light'],
fg: ['background', 0, 0, 0, 0.7],
bg: ['background', 0, 0, 0, 0.1],
settings: ['themed_title_bar'],
bg: 'var(titleBarBackground)',
fg: 'var(titleBarColor)',
style: 'light',
},
{
Expand Down
66 changes: 15 additions & 51 deletions themes/Meetio Theme.hidden-theme
Original file line number Diff line number Diff line change
Expand Up @@ -2659,90 +2659,54 @@
{
"class": "title_bar",
"settings": [
"!themed_title_bar"
],
"fg": [
"background",
255,
255,
255,
0.7
],
"bg": [
"background",
0,
0,
0,
0.4
"themed_title_bar"
],
"fg": "var(titleBarColor)",
"style": "system"
},
{
"class": "title_bar",
"settings": [
"!themed_title_bar"
"themed_title_bar"
],
"attributes": [
"file_dark"
],
"bg": [
"background",
255,
255,
255,
0.15
],
"bg": "var(titleBarBackground)",
"style": "dark"
},
{
"class": "title_bar",
"settings": [
"!themed_title_bar"
],
"attributes": [
"file_medium_dark"
],
"settings": [
"themed_title_bar"
],
"bg": "var(titleBarBackground)",
"style": "dark"
},
{
"class": "title_bar",
"settings": [
"!themed_title_bar"
],
"attributes": [
"file_medium"
],
"bg": [
"background",
0,
0,
0,
0.2
"settings": [
"themed_title_bar"
],
"bg": "var(titleBarBackground)",
"style": "light"
},
{
"class": "title_bar",
"settings": [
"!themed_title_bar"
],
"attributes": [
"file_light"
],
"fg": [
"background",
0,
0,
0,
0.7
],
"bg": [
"background",
0,
0,
0,
0.1
"settings": [
"themed_title_bar"
],
"bg": "var(titleBarBackground)",
"fg": "var(titleBarColor)",
"style": "light"
},
{
Expand Down

0 comments on commit 3d83870

Please sign in to comment.