838eec30a8
- Implemented a new composable `useTheme` for managing theme state. - Added functions to read and write theme preference to local storage. - Applied theme styles to the DOM based on user preference. - Introduced a toggle function to switch between light and dark themes. refactor: enhance copilot plugin functionality - Improved request handling with sequence and document versioning. - Refactored ghost text handling to improve clarity and efficiency. - Updated markdown insertion logic to handle parsed content more robustly. - Enhanced error handling and logging for better debugging. style: update global styles for light and dark themes - Defined CSS variables for light and dark themes to streamline styling. - Improved overall styling consistency and responsiveness. - Added transitions for smoother theme changes and interactions.
2 lines
2.5 KiB
JavaScript
2 lines
2.5 KiB
JavaScript
import{E as d}from"./cm-view-CiSFjroV.js";import{u as m,H as s}from"./cm-language-CDsY7zq0.js";import{t as o}from"./vendor-lezer-highlight-DuEf3ZFH.js";const g="#e5c07b",t="#e06c75",b="#56b6c2",p="#ffffff",r="#abb2bf",a="#7d8799",f="#61afef",u="#98c379",c="#d19a66",k="#c678dd",h="#21252b",l="#2c313a",n="#282c34",e="#353a42",C="#3E4451",i="#528bff",y=d.theme({"&":{color:r,backgroundColor:n},".cm-content":{caretColor:i},".cm-cursor, .cm-dropCursor":{borderLeftColor:i},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:C},".cm-panels":{backgroundColor:h,color:r},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:n,color:a,border:"none"},".cm-activeLineGutter":{backgroundColor:l},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:e},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:e,borderBottomColor:e},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:l,color:r}}},{dark:!0}),B=s.define([{tag:o.keyword,color:k},{tag:[o.name,o.deleted,o.character,o.propertyName,o.macroName],color:t},{tag:[o.function(o.variableName),o.labelName],color:f},{tag:[o.color,o.constant(o.name),o.standard(o.name)],color:c},{tag:[o.definition(o.name),o.separator],color:r},{tag:[o.typeName,o.className,o.number,o.changed,o.annotation,o.modifier,o.self,o.namespace],color:g},{tag:[o.operator,o.operatorKeyword,o.url,o.escape,o.regexp,o.link,o.special(o.string)],color:b},{tag:[o.meta,o.comment],color:a},{tag:o.strong,fontWeight:"bold"},{tag:o.emphasis,fontStyle:"italic"},{tag:o.strikethrough,textDecoration:"line-through"},{tag:o.link,color:a,textDecoration:"underline"},{tag:o.heading,fontWeight:"bold",color:t},{tag:[o.atom,o.bool,o.special(o.variableName)],color:c},{tag:[o.processingInstruction,o.string,o.inserted],color:u},{tag:o.invalid,color:p}]),w=[y,m(B)];export{w as o};
|