Commit Graph
642 Commits
Author SHA1 Message Date
Max Brunsfeld 1b6aeb4165 Improve the look of the syntax tree view UI 2023-06-12 15:14:57 -07:00
Nate Butler 9765b7f503 Build tokens for each theme (#2590)
This PR adds the ability to export tokens for each theme. 

You can export tokens by:

1. `cd styles`
2. `npm run build-tokens`
3. Tokens will be output in the target folder (`styles/target`)

The tokens match the ColorScheme object. In the future we may also
export tokens for our styleTrees.

Release Notes:

- N/A (No public facing changes)

---
TODO:

- [x] Generate Token Studio theme index file
- [x] ColorScheme
    - [x] name:
    - [x] isLight
    - [x] lowest
    - [x] middle
    - [x] highest
    - [x] popoverShadow
    - [x] modalShadow
    - [x] players
    - [x] syntax
2023-06-08 16:40:46 -04:00
Nate Butler 68d348004b $tokens.json => $themes.json 2023-06-08 16:36:15 -04:00
Nate Butler 9cce60a722 Update buildTokens to export $metadata.json and $themes.json 2023-06-08 16:19:28 -04:00
Nate Butler 00338aa31f Only export color tokens for syntax 2023-06-08 15:14:59 -04:00
Nate Butler 599fa359a8 WIP syntax tokens 2023-06-08 15:12:11 -04:00
Nate Butler 45d1deb714 Export additional tokens, standardize naming convention 2023-06-08 12:21:51 -04:00
Max Brunsfeld 23bacadfec Tweak LSP log menu styling 2023-06-08 08:58:57 -07:00
Max Brunsfeld 94e8749c2f Merge branch 'main' into lsp-log-messages 2023-06-08 08:49:08 -07:00
Max Brunsfeld ebe2492180 Style new lsp log menu, add a test for it 2023-06-08 08:43:25 -07:00
Nate Butler 8eb107d8e9 Build layer tokens for each theme 2023-06-08 11:15:59 -04:00
Nate Butler 53307e8db8 Update buildLicenses to only include the theme url if there is one 2023-06-08 01:23:19 -04:00
Nate Butler b4136572b8 Update TSCondif
Based on #2558. Also fixes errors resulting from the stricter options.
2023-06-08 01:15:57 -04:00
Nate Butler abc6e60006 Add foundation for exporting tokens 2023-06-08 00:37:00 -04:00
Nate Butler 7a8577d3f0 Organize misc files into theme, themes and styleTrees 2023-06-07 12:50:37 -04:00
Nate Butler aa1f7520bd Minor updates 2023-06-07 12:40:49 -04:00
Sergii Onufriienko ea1c0a8683 Merge branch 'main' into sergey/z-1768-update-createcolorscheme-to-accept-a-theme-in-the 2023-06-07 16:12:13 +01:00
Sergey Onufrienko 84f9aa6fc7 feat: use theme index to build licenses 2023-06-07 16:10:16 +01:00
Sergey Onufrienko 63e1991f08 feat: use theme index to build themes 2023-06-07 16:10:02 +01:00
Sergey Onufrienko 9efbbb4453 feat: re-export chroma 2023-06-07 16:09:24 +01:00
Sergey Onufrienko df6106a2ce feat: add themes index 2023-06-07 16:08:58 +01:00
Sergey Onufrienko 71577388ac feat: change themes to return ThemeConfig 2023-06-07 16:08:48 +01:00
Antonio Scandurra 82749a0483 Merge remote-tracking branch 'origin/main' into assistant-2 2023-06-06 19:18:22 +02:00
Antonio ScandurraandNathan Sobo cd54c3b048 Cycle message roles on click
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2023-06-06 18:45:08 +02:00
Nate Butler eee9a92ef5 Tighten up spacing in the project panel (#2574)
Following https://github.com/zed-industries/zed/pull/2559 the project
panel entries become pretty wide again. This PR tries to mitigate that
and just make some general improvements to visual density in the project
panel.

- Reduces padding around items
- Removes top margin
- Slightly reduces the height of each item
- Fixes an issue where ignored files had the wrong color chevron

Release Notes:

- Improved density of the project panel and tidied up some visual
issues.
2023-06-06 11:31:53 -04:00
Piotr Osiewicz 66fb6841c2 project panel/styles: Align child's chevron with parent path (#2559)
Z-1012

Release notes:
- Adjust indent of files in subdirectories.
2023-06-06 16:55:38 +02:00
Antonio ScandurraandJulia Risley 3372e276ac Show error message when requests to OpenAI fail
Co-Authored-By: Julia Risley <julia@zed.dev>
2023-06-06 16:53:56 +02:00
Antonio Scandurra 350d955f48 Show the current model and allow clicking on it to change it 2023-06-06 13:13:44 +02:00
Joseph Lyons 4b5a7ec94a Fix typos 2023-06-02 22:02:19 -04:00
Antonio Scandurra 4829c9ef8e Show remaining tokens 2023-06-02 17:27:21 +02:00
Sergey Onufrienko 39046de128 feat: update themes to use ThemeConfig 2023-06-02 14:11:11 +02:00
Sergey Onufrienko 1e3c0c4c74 fix: typescript errors 2023-06-02 14:10:44 +02:00
Sergey Onufrienko 9af586e442 feat: add index export 2023-06-02 14:10:19 +02:00
Sergey Onufrienko 869165cb71 chore: make SyntaxHighlightStyle.color optional 2023-06-02 14:10:02 +02:00
Sergey Onufrienko ce8daa7d18 feat: update and refactor colorScheme 2023-06-02 14:08:35 +02:00
Sergey Onufrienko 2c28af853e feat: add themeConfig types 2023-06-02 14:07:43 +02:00
Antonio Scandurra e2a0dd6ccf Allow saving the OpenAI API key in the assistant panel 2023-06-02 11:38:02 +02:00
Antonio Scandurra 58959e4179 Merge remote-tracking branch 'origin/main' into assistant-2 2023-06-02 09:32:11 +02:00
Max Brunsfeld 39531f3d2d Fix more issues with panels and zoom (#2545)
Release Notes:

* Fixed the behavior of panel buttons when their panel is open. Show the
key binding for closing the containing dock (preview only).
* Improved the styling of zoomed panels and panes, giving them a
stronger border, and color the zoom button with an "active" style
(preview only).
* Improved the stability of panels' zoom state. Close their dock instead
of resetting their zoom state when dismissing panels to reveal other
items (preview only).
2023-05-31 13:17:12 -07:00
Max Brunsfeld 4ff9201190 Use active color for zoom button in a zoomed pane 2023-05-31 12:51:57 -07:00
Nate Butler 783f2b408e Add un-hooked up zoomIcon styles 2023-05-31 12:45:55 -07:00
Nate Butler 2c3f98c602 Update pane/panel zoom styling 2023-05-31 12:45:55 -07:00
Sergii Onufriienko 952b9bfcef Update theme license logic (#2541)
Use new theme file structure
```
themes/
  [theme_name]
    [theme_name]-common.ts
    [theme_name]-light.ts
    [theme_name]-dark.ts
    LICENSE
```

Release Notes: 
- N/A
2023-05-31 18:36:13 +01:00
Mikayla Makiandmax 3526c0a9d3 Seperate pane and panel styling
co-authored-by: max <max@zed.dev>
2023-05-30 16:23:16 -07:00
Sergey Onufrienko 45693e6870 chore: remove license_text 2023-05-30 18:16:50 +02:00
Sergey Onufrienko eb29bc86ac feat: read from LICENSE file 2023-05-30 18:12:31 +02:00
Sergey Onufrienko 6d5ee2d61e refactor: add license file and check it exists 2023-05-30 18:11:54 +02:00
Sergey Onufrienko c0b1d4b921 refactor: move common to theme folder 2023-05-30 16:53:12 +02:00
Sergey Onufrienko 1afd10e09c chore: move similar themes to one folder 2023-05-30 16:52:28 +02:00
Sergey Onufrienko b71d13d46a refactor: colorSchemes 2023-05-30 15:52:32 +02:00