Skip to content

Commit

Permalink
fix: move json file to javascript.
Browse files Browse the repository at this point in the history
  • Loading branch information
mauroreisvieira committed Oct 29, 2019
1 parent bf21983 commit 64d08d3
Show file tree
Hide file tree
Showing 30 changed files with 173 additions and 47 deletions.
105 changes: 105 additions & 0 deletions schemes/Meetio-Theme-Light.sublime-color-scheme
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,111 @@
"tags_foreground": "var(pink)"
},
"rules": [
{
"foreground": "#FDFDFDFF",
"background": "#D95757FF",
"scope": "col_D95757FF"
},
{
"foreground": "#D5D5D5FF",
"background": "#4C566AFF",
"scope": "col_4C566AFF"
},
{
"foreground": "#525252FF",
"background": "#C3E88DFF",
"scope": "col_C3E88DFF"
},
{
"foreground": "#3D3D3DFF",
"background": "#7FDBCAFF",
"scope": "col_7FDBCAFF"
},
{
"foreground": "#272727FF",
"background": "#82AAFFFF",
"scope": "col_82AAFFFF"
},
{
"foreground": "#919191FF",
"background": "#011627FF",
"scope": "col_011627FF"
},
{
"foreground": "#4E4E4EFF",
"background": "#D46C6C66",
"scope": "col_D46C6C66"
},
{
"foreground": "#0D0D0DFF",
"background": "#FF5874FF",
"scope": "col_FF5874FF"
},
{
"foreground": "#010101FF",
"background": "#EF5350FF",
"scope": "col_EF5350FF"
},
{
"foreground": "#282828FF",
"background": "#F78C6CFF",
"scope": "col_F78C6CFF"
},
{
"foreground": "#3D3D3DFF",
"background": "#C2AFFFFF",
"scope": "col_C2AFFFFF"
},
{
"foreground": "#F1F1F1FF",
"background": "#637777FF",
"scope": "col_637777FF"
},
{
"foreground": "#404040FF",
"background": "#ADDB67FF",
"scope": "col_ADDB67FF"
},
{
"foreground": "#101010FF",
"background": "#C17E70FF",
"scope": "col_C17E70FF"
},
{
"foreground": "#535353FF",
"background": "#FFCB8BFF",
"scope": "col_FFCB8BFF"
},
{
"foreground": "#434343FF",
"background": "#FFCC00FF",
"scope": "col_FFCC00FF"
},
{
"foreground": "#5F5F5FFF",
"background": "#DEDFE4FF",
"scope": "col_DEDFE4FF"
},
{
"foreground": "#373737FF",
"background": "#E2B93DFF",
"scope": "col_E2B93DFF"
},
{
"foreground": "#808080FF",
"background": "#000000FF",
"scope": "col_000000FF"
},
{
"foreground": "#ffffff",
"background": "#000000",
"scope": "col_gutter"
},
{
"foreground": "#7F7F7FFF",
"background": "#FFFFFFFF",
"scope": "col_FFFFFFFF"
},
{
"name": "[CSS] String",
"scope": "source.css string",
Expand Down
7 changes: 2 additions & 5 deletions src/icons.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
const path = require("path")
const fs = require("fs")
const svg2img = require("svg2img")
const defaultOptions = require("./../src/icons/default.json")
const defaultOptions = require("./icons/default.js")

function build() {
let iconPath
Expand All @@ -13,10 +13,7 @@ function build() {
.slice(0, -1)
.join(".")
fs.readFile(iconPath, "utf8", (err, data) => {
if (err) {
throw err
}
data = data.replace("#000", defaultOptions.color)
if (err) throw err
data = Buffer.from(data, "utf8")
defaultOptions.settings.forEach(setting => {
svg2img(
Expand Down
17 changes: 17 additions & 0 deletions src/icons/default.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module.exports = {
color: "#fff",
settings: [
{
size: 24,
suffix: false,
},
{
size: 48,
suffix: "@2x",
},
{
size: 72,
suffix: "@3x",
},
],
}
17 changes: 0 additions & 17 deletions src/icons/default.json

This file was deleted.

2 changes: 1 addition & 1 deletion src/icons/svg/arrow_down.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/icons/svg/arrow_left.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/icons/svg/arrow_right.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/icons/svg/arrow_up.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/icons/svg/dirty_dot_icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/icons/svg/dirty_icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/icons/svg/folder_closed.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/icons/svg/folder_dup.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/icons/svg/folder_open.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/icons/svg/icon_branch.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/icons/svg/icon_case_sensitive.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/icons/svg/icon_close.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/icons/svg/icon_highlight_matches.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/icons/svg/icon_in_context.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/icons/svg/icon_in_selection.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/icons/svg/icon_preserve_case.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/icons/svg/icon_regex.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/icons/svg/icon_use_buffer.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/icons/svg/icon_whole_word.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/icons/svg/icon_wrap.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/icons/svg/overflow_menu.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/icons/svg/vsc_added.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/icons/svg/vsc_modified.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/icons/svg/vsc_staged.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/icons/svg/vsc_untracked.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions src/schemes/dark.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "Meetio-Theme-Dark",
"author": "Mauro Reis Vieira <mauroreisvieira@gmail.com>",
"variables": {
"cursor" : "#ffcc00",
"foreground" : "#dedfe4",
"background" : "#011627",
"comments" : "#637777",
"blue" : "#82aaff",
"brown" : "#c17e70",
"cyan" : "#7fdbca",
"green" : "#c3e88d",
"orange" : "#f78c6c",
"pink" : "#ff5874",
"purple" : "#c2afff",
"red" : "#d95757",
"yellow" : "#ffcb8b",
"invalid" : "#d46c6c66",
"diffAdded" : "#addb67",
"diffModified" : "#e2b93d",
"diffDeleted" : "#ef5350",
"diffIgnored" : "#4C566A"
}
}

0 comments on commit 64d08d3

Please sign in to comment.