Commit Graph
598 Commits
Author SHA1 Message Date
Piotr Osiewicz fca8e42474 Merge branch 'main' into sergey/z-2308-create-a-proof-of-concept-of-exporting-a-type-from-rust-and 2023-06-22 17:58:56 +02:00
Nate Butler 165f7d5e0a Split Interactive into Interactive and Toggleable (#2628)
This is a part of the intensity driven theme rewrite. 

It introduces the `toggle` and `interactive` helper functions to build
Toggle<T> and Interactive<T> styles for interactive elements in the
theme.

This PR also removes the `theme_testbench` crate and related actions.

Huge thanks to @osiewicz and @mikayla-maki for pushing this forward 🙏🏽

Release Notes:

- Updated the style of many interactive elements.
2023-06-21 15:03:08 -04:00
Nate Butler ffa8f60ab9 Format 2023-06-21 13:58:54 -04:00
Nate Butler 9d47acf5fb Update toggle active styles 2023-06-21 13:56:27 -04:00
Nate Butler 3dfaa7b8b4 Fix status bar buttons 2023-06-21 13:14:39 -04:00
Nate Butler 1741fad377 Update syntax colors 2023-06-21 12:21:01 -04:00
Nate Butler ecc4689a60 Remove unused light variable 2023-06-21 12:20:47 -04:00
Sergey Onufrienko 646e3d0b0a feat: move gen to styles and add scripts 2023-06-21 16:13:41 +02:00
Mikayla Maki 2dd4bec3db Add zed typescript settings
Remove 2 space indent
2023-06-20 16:05:23 -07:00
Piotr Osiewicz fad54581d0 Fix up toggles 2023-06-20 16:05:23 -07:00
Nate Butler 482e2af45a WIP: Start updating style trees to new toggle() format. 2023-06-20 16:05:23 -07:00
Nate Butler b10dd56f4b Update toggle, add tests 2023-06-20 16:05:23 -07:00
Nate Butler 80bc61506f Update toggle 2023-06-20 16:05:23 -07:00
Nate Butler a50f667a35 Format 2023-06-20 16:05:23 -07:00
Nate Butler 991e1f6c2c Add path aliases 2023-06-20 16:05:23 -07:00
Nate Butler adea1feff8 Set up vitest and add tests for interactive 2023-06-20 16:05:23 -07:00
Piotr Osiewicz 129ea61ea4 further style adjustments; cargo-run works 2023-06-20 16:05:23 -07:00
Piotr Osiewicz 53637c14ee Fix up uses of interactive 2023-06-20 16:05:23 -07:00
Nate Butler 24e619f6d9 Update the interactive function 2023-06-20 16:05:23 -07:00
Nate Butler 00ab90794c Use TS-flavored doc comments 2023-06-20 16:05:23 -07:00
Piotr Osiewicz 34b49ae271 Adjust some of the styles to the new Toggleable format 2023-06-20 16:05:23 -07:00
Piotr Osiewicz fe3f910a6d Implement Toggleable<T> and Interactive<T> properly 2023-06-20 16:05:23 -07:00
Piotr Osiewicz 5ef5409013 Add toggle.ts and interactive.ts 2023-06-20 16:05:23 -07:00
Nate Butler 713b817e6d Update rose pine theme family 2023-06-16 23:02:32 -04:00
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