1
1
import React from 'react'
2
- import { NavPageContainer , AppTheme , ColorPickerItem , ColorPickerPalette } from '../../_lib'
2
+ import { NavPageContainer , ColorPickerItem , ColorPickerPalette } from '../../_lib'
3
3
import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter'
4
4
import { vscDarkPlus } from 'react-syntax-highlighter/dist/esm/styles/prism'
5
5
import { ColorPickerItemImportCode , ColorPickerItemUsageCode , ColorPickerPaletteImportCode , ColorPickerPaletteUsageCode } from './codes'
6
6
import PropsViewColorPickerItem from './props-view-color-picker-item'
7
7
import PropsViewColorPickerPalette from './props-view-color-picker-palette'
8
- import Win11Wall from "../../../assets/win11Wall.jpg"
9
- import './css/window-view.css'
10
8
11
9
class ColorPickerDocs extends React . Component {
12
10
13
11
state = {
14
- app_color : "" ,
15
- app_get_theme : "" ,
12
+ app_color : "#6632a8" ,
16
13
app_platform : "windows10"
17
14
}
18
15
19
16
changeTheme = ( color ) => {
20
- this . setState ( { app_color : color . target . value } ) ;
17
+ this . setState ( { app_color : color . target . value } ) ;
21
18
}
22
19
23
20
componentDidMount = ( ) => {
@@ -31,39 +28,7 @@ render() {
31
28
< NavPageContainer
32
29
hasPadding
33
30
animateTransition = { false } >
34
- < h1 > ColorPicker</ h1 >
35
-
36
- < AppTheme
37
- color = { this . state . app_color }
38
- colorDarkMode = { this . state . app_color }
39
- />
40
-
41
- { this . state . app_platform === "windows10" ?
42
- < div className = "windows-view" >
43
- < div className = "start-view" >
44
- < div className = "tiles-view-right" >
45
- < div className = "white-line" > </ div >
46
- < p > </ p > < p > </ p > < p > </ p > < p > </ p > < p > </ p > < p > </ p >
47
- </ div >
48
- < div className = "tiles-view" >
49
- < div className = "white-line" > </ div >
50
- < p > Aa</ p >
51
- </ div >
52
- </ div >
53
- < div className = "taskbar-view" > </ div >
54
- </ div >
55
- :
56
- < >
57
- < div className = "windows-view11" >
58
- < img src = { Win11Wall } alt = "win11UI" />
59
- < div className = "windows-view11_tile" >
60
- < div className = "windows-view11_button" > </ div >
61
- </ div >
62
- </ div >
63
- < br />
64
- </ >
65
- }
66
-
31
+ < h1 style = { { color : this . state . app_color } } > ColorPicker</ h1 >
67
32
68
33
< ColorPickerItem
69
34
defaultChecked
0 commit comments