Skip to content

Commit

Permalink
Icon themes (lapce#1459)
Browse files Browse the repository at this point in the history
  • Loading branch information
panekj authored Oct 20, 2022
1 parent b0f1620 commit b5f6488
Show file tree
Hide file tree
Showing 224 changed files with 2,036 additions and 1,164 deletions.
12 changes: 10 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,15 @@

### Features/Changes

- [#272](https://github.com/lapce/issue/272): Added XML language support
- [#1472](https://github.com/lapce/lapce/pull/1472) Added SQL language support
- [#1459](https://github.com/lapce/lapce/pull/1459): Implement icon theme system
- **This is a breaking change for colour themes!**
- Colour themes should now use `[color-theme]` table format in theme TOML
- `volt.toml` now use `color-themes` and `icon-themes` keys. `themes` key is not used anymore.
- Colour themes now must specify colour preference via `[color-theme.color-preference]` key.
Available values are `Dark`, `Light`, `HighContrastDark` and `HighContrastLight`.
This is used to automatically calculate UI icons and background colours for hover/click events.
- [#1554](https://github.com/lapce/lapce/pull/1554): Added XML language support
- [#1472](https://github.com/lapce/lapce/pull/1472): Added SQL language support
- [#1531](https://github.com/lapce/lapce/pull/1531): Improved Ctrl+Left command on spaces at the beginning of a line
- [#1491](https://github.com/lapce/lapce/pull/1491): Added Vim shift+c to delete remainder of line
- [#1508](https://github.com/lapce/lapce/pull/1508): Show in progress when Lapce is self updating
Expand All @@ -17,6 +24,7 @@

### Bug Fixes

- [#1459](https://github.com/lapce/lapce/pull/1459): Fix opening currently used logfile
- [#1505](https://github.com/lapce/lapce/pull/1505): Fix proxy download for hosts with curl without -Z flag
- [#1483](https://github.com/lapce/lapce/pull/1483): Fix showing the close icon for the first tab when opening multiple tab
- [#1477](https://github.com/lapce/lapce/pull/1477): Now use `esc` to close searchbar regarless of the current focus
Expand Down
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 12 additions & 4 deletions defaults/dark-theme.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[theme]
[color-theme]
name = "Lapce Dark"
color-preference = "dark"

[ui]
font-family = ""
Expand All @@ -11,7 +12,7 @@ activity-width = 50
scroll-width = 10
drop-shadow-width = 0

[theme.base]
[color-theme.base]
white = "#ABB2BF"
black = "#282C34"
grey = "#3E4451"
Expand All @@ -24,7 +25,7 @@ purple = "#C678DD"
cyan = "#56B6C2"
magenta = "#C678DD"

[theme.syntax]
[color-theme.syntax]
"comment" = "#5C6370"
"constant" = "$yellow"
"type" = "$yellow"
Expand Down Expand Up @@ -59,7 +60,7 @@ magenta = "#C678DD"
"variable.other.member" = "$green"
"tag" = "$blue"

[theme.ui]
[color-theme.ui]
"lapce.active_tab" = "#528BFF"
"lapce.inactive_tab" = "#5C6370"
"lapce.error" = "$red"
Expand All @@ -68,6 +69,13 @@ magenta = "#C678DD"
"lapce.border" = "#000000"
"lapce.scroll_bar" = "$grey"

"lapce.icon_active" = "$white"
"lapce.icon_inactive" = "$grey"

"lapce.remote.local" = "#4078F2"
"lapce.remote.connected" = "#50A14F"
"lapce.remote.connecting" = "#C18401"
"lapce.remote.discconnected" = "#E45649"

"editor.background" = "$black"
"editor.foreground" = "$white"
Expand Down
110 changes: 110 additions & 0 deletions defaults/icon-theme.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
[icon-theme]
name = "Lapce Codicons"

[icon-theme.ui]
"logo" = "lapce_logo"
"link" = "link"
"error" = "error"
"close" = "close"
"remote" = "lapce_remote"
"unsaved" = "circle-filled"
"warning" = "warning"
"problem" = "problem"
"settings" = "settings-gear"
"terminal" = "terminal"
"lightbuld" = "lightbult"
"extensions" = "extensions"
"breadcrumb_separator" = "chevron-right"

"window.close" = "chrome-close"
"window.restore" = "chrome-restore"
"window.maximise" = "chrome-maximize"
"window.minimise" = "chrome-minimise"

"file" = "file"
"file_explorer" = "files"
"file_picker_up" = "arrow-up"

"scm.icon" = "source-control"
"scm.diff.modified" = "diff-modified"
"scm.diff.added" = "diff-added"
"scm.diff.removed" = "diff-removed"
"scm.diff.renamed" = "diff-renamed"

"palette.previous" = "arrow-left"
"palette.next" = "arrow-right"
"palette.menu" = "chevron-down"

"location.forward" = "arrow-left"
"location.backward" = "arrow-right"

"item.opened" = "chevron-down"
"item.closed" = "chevron-right"

"directory.closed" = "folder"
"directory.opened" = "folder-opened"

"panel.restore" = "chevron-down"
"panel.maximise" = "chevron-up"

"split.horizontal" = "split-horizontal"

"tab.previous" = "chevron-left"
"tab.next" = "chevron-right"

"sidebar.left.on" = "layout-sidebar-left"
"sidebar.left.off" = "layout-sidebar-left-off"
"sidebar.right.on" = "layout-sidebar-right"
"sidebar.right.off" = "layout-sidebar-right-off"

"layout.panel.on" = "layout-panel"
"layout.panel.off" = "layout-panel-off"

"search.icon" = "search"
"search.clear" = "close"
"search.forward" = "arrow-down"
"search.backward" = "arrow-up"
"search.case_sensitive" = "case-sensitive"

"symbol_kind.array" = "symbol-array"
"symbol_kind.boolean" = "symbol-boolean"
"symbol_kind.class" = "symbol-class"
"symbol_kind.constant" = "symbol-constant"
"symbol_kind.enum_member" = "symbol-enum-member"
"symbol_kind.enum" = "symbol-enum"
"symbol_kind.event" = "symbol-event"
"symbol_kind.field" = "symbol-field"
"symbol_kind.file" = "symbol-file"
"symbol_kind.function" = "symbol-method"
"symbol_kind.interface" = "symbol-interface"
"symbol_kind.key" = "symbol-key"
"symbol_kind.method" = "symbol-method"
"symbol_kind.namespace" = "symbol-namespace"
"symbol_kind.number" = "symbol-numeric"
"symbol_kind.object" = "symbol-namespace"
"symbol_kind.operator" = "symbol-operator"
"symbol_kind.property" = "symbol-property"
"symbol_kind.string" = "symbol-string"
"symbol_kind.struct" = "symbol-structure"
"symbol_kind.type_parameter" = "symbol-parameter"
"symbol_kind.variable" = "symbol-variable"

"completion_item_kind.class" = "symbol-class"
"completion_item_kind.constant" = "symbol-constant"
"completion_item_kind.enum_member" = "symbol-enum-member"
"completion_item_kind.enum" = "symbol-enum"
"completion_item_kind.field" = "symbol-field"
"completion_item_kind.function" = "symbol-method"
"completion_item_kind.interface" = "symbol-interface"
"completion_item_kind.keyword" = "symbol-keyword"
"completion_item_kind.method" = "symbol-method"
"completion_item_kind.module" = "symbol-namespace"
"completion_item_kind.property" = "symbol-property"
"completion_item_kind.snippet" = "symbol-snippet"
"completion_item_kind.string" = "symbol-string"
"completion_item_kind.struct" = "symbol-structure"
"completion_item_kind.variable" = "symbol-variable"

[icon-theme.filename]

[icon-theme.extension]
16 changes: 12 additions & 4 deletions defaults/light-theme.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[theme]
[color-theme]
name = "Lapce Light"
color-preference = "light"

[ui]
font-family = ""
Expand All @@ -11,7 +12,7 @@ activity-width = 50
scroll-width = 10
drop-shadow-width = 0

[theme.base]
[color-theme.base]
white = "#FAFAFA"
black = "#383A42"
grey = "#E5E5E6"
Expand All @@ -24,7 +25,7 @@ purple = "#A626A4"
cyan = "#0184BC"
magenta = "#A626A4"

[theme.syntax]
[color-theme.syntax]
"comment" = "#A0A1A7"
"constant" = "$yellow"
"type" = "$yellow"
Expand Down Expand Up @@ -65,14 +66,21 @@ magenta = "#A626A4"
"variable.other.member" = "$green"
"tag" = "$blue"

[theme.ui]
[color-theme.ui]
"lapce.active_tab" = "#526FFF"
"lapce.inactive_tab" = "#A0A1A7"
"lapce.error" = "#E51400"
"lapce.warn" = "#E9A700"
"lapce.dropdown_shadow" = "#B4B4B4"
"lapce.border" = "#B4B4B4"
"lapce.scroll_bar" = "#B4B4B4"
"lapce.icon_active" = "$black"
"lapce.icon_inactive" = "$grey"

"lapce.remote.local" = "#4078F2"
"lapce.remote.connected" = "#50A14F"
"lapce.remote.connecting" = "#C18401"
"lapce.remote.discconnected" = "#E45649"

"terminal.cursor" = "$black"
"terminal.foreground" = "$black"
Expand Down
Loading

0 comments on commit b5f6488

Please sign in to comment.