mirror of
https://github.com/jaywcjlove/wxmp.git
synced 2026-01-12 08:18:49 +08:00
feat: add electron app.
This commit is contained in:
25
website/src/commands/title.tsx
Normal file
25
website/src/commands/title.tsx
Normal file
@@ -0,0 +1,25 @@
|
||||
import React from 'react';
|
||||
import { ICommand } from '@uiw/react-markdown-editor';
|
||||
import styled from 'styled-components';
|
||||
import { ReactComponent as ColorIcon } from '../assets/color.svg';
|
||||
|
||||
const Title = styled.div`
|
||||
font-size: 0.9rem;
|
||||
font-weight: bold;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
line-height: 1;
|
||||
padding-right: 0.5rem;
|
||||
padding-left: 0.2rem;
|
||||
`;
|
||||
|
||||
export const themeTitle: ICommand = {
|
||||
name: 'themeTitle',
|
||||
keyCommand: 'themeTitle',
|
||||
button: () => (
|
||||
<Title>
|
||||
<ColorIcon width={16} height={16} />
|
||||
主题编辑器
|
||||
</Title>
|
||||
),
|
||||
};
|
||||
Reference in New Issue
Block a user