lgimgui 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/demo/public/materials.json +273 -33
- package/package.json +1 -1
- package/src/widgets/controls.js +1 -1
|
@@ -164,38 +164,38 @@
|
|
|
164
164
|
"control": {
|
|
165
165
|
"cornerRadius": 10,
|
|
166
166
|
"cornerRoundness": 2.5,
|
|
167
|
-
"refThickness":
|
|
168
|
-
"refFactor": 1.
|
|
169
|
-
"refDispersion":
|
|
167
|
+
"refThickness": 9.86,
|
|
168
|
+
"refFactor": 1.6,
|
|
169
|
+
"refDispersion": 30.61,
|
|
170
170
|
"refFresnelRange": 10.51,
|
|
171
171
|
"refFresnelHardness": 14.86,
|
|
172
172
|
"refFresnelFactor": 14.41,
|
|
173
173
|
"glareRange": 22.17,
|
|
174
174
|
"glareHardness": 27.78,
|
|
175
|
-
"glareFactor":
|
|
175
|
+
"glareFactor": 13.4,
|
|
176
176
|
"glareConvergence": 25.44,
|
|
177
177
|
"glareOppositeFactor": 37.33,
|
|
178
178
|
"glareAngle": -42.329999999999984,
|
|
179
|
-
"blurRadius":
|
|
180
|
-
"blurEdge":
|
|
179
|
+
"blurRadius": 17,
|
|
180
|
+
"blurEdge": true,
|
|
181
181
|
"tint": {
|
|
182
|
-
"r":
|
|
183
|
-
"g":
|
|
184
|
-
"b":
|
|
185
|
-
"a": 0.
|
|
182
|
+
"r": 218,
|
|
183
|
+
"g": 222,
|
|
184
|
+
"b": 226,
|
|
185
|
+
"a": 0.6697542779020738
|
|
186
186
|
},
|
|
187
187
|
"shadowExpand": 12.5,
|
|
188
|
-
"shadowFactor":
|
|
188
|
+
"shadowFactor": 26.91,
|
|
189
189
|
"shadowPosition": {
|
|
190
190
|
"x": 0,
|
|
191
191
|
"y": -4
|
|
192
192
|
},
|
|
193
|
-
"borderWidth": 1.
|
|
193
|
+
"borderWidth": 1.1,
|
|
194
194
|
"borderColor": {
|
|
195
|
-
"r":
|
|
196
|
-
"g":
|
|
197
|
-
"b":
|
|
198
|
-
"a": 0.
|
|
195
|
+
"r": 115,
|
|
196
|
+
"g": 146,
|
|
197
|
+
"b": 177,
|
|
198
|
+
"a": 0.28902046013441024
|
|
199
199
|
},
|
|
200
200
|
"borderAdapt": false,
|
|
201
201
|
"adaptTint": 100,
|
|
@@ -682,31 +682,71 @@
|
|
|
682
682
|
"borderAdapt": false,
|
|
683
683
|
"adaptTint": 100,
|
|
684
684
|
"adaptShadow": 100
|
|
685
|
+
},
|
|
686
|
+
"control": {
|
|
687
|
+
"cornerRadius": 10,
|
|
688
|
+
"cornerRoundness": 2.5,
|
|
689
|
+
"refThickness": 7.48,
|
|
690
|
+
"refFactor": 1.19,
|
|
691
|
+
"refDispersion": 2.244,
|
|
692
|
+
"refFresnelRange": 10.51,
|
|
693
|
+
"refFresnelHardness": 14.86,
|
|
694
|
+
"refFresnelFactor": 0,
|
|
695
|
+
"glareRange": 22.17,
|
|
696
|
+
"glareHardness": 27.78,
|
|
697
|
+
"glareFactor": 0,
|
|
698
|
+
"glareConvergence": 25.44,
|
|
699
|
+
"glareOppositeFactor": 37.33,
|
|
700
|
+
"glareAngle": -42.329999999999984,
|
|
701
|
+
"blurRadius": 200,
|
|
702
|
+
"blurEdge": true,
|
|
703
|
+
"tint": {
|
|
704
|
+
"r": 241.8,
|
|
705
|
+
"g": 241.8,
|
|
706
|
+
"b": 241.8,
|
|
707
|
+
"a": 0.33502948831038176
|
|
708
|
+
},
|
|
709
|
+
"shadowExpand": 12.5,
|
|
710
|
+
"shadowFactor": 0,
|
|
711
|
+
"shadowPosition": {
|
|
712
|
+
"x": 0,
|
|
713
|
+
"y": -4
|
|
714
|
+
},
|
|
715
|
+
"borderWidth": 1.6,
|
|
716
|
+
"borderColor": {
|
|
717
|
+
"r": 255,
|
|
718
|
+
"g": 255,
|
|
719
|
+
"b": 255,
|
|
720
|
+
"a": 0.21926326609463961
|
|
721
|
+
},
|
|
722
|
+
"borderAdapt": false,
|
|
723
|
+
"adaptTint": 100,
|
|
724
|
+
"adaptShadow": 100
|
|
685
725
|
}
|
|
686
726
|
},
|
|
687
727
|
"dark": {
|
|
688
728
|
"control": {
|
|
689
729
|
"cornerRadius": 60,
|
|
690
730
|
"cornerRoundness": 5,
|
|
691
|
-
"refThickness":
|
|
692
|
-
"refFactor": 1.
|
|
693
|
-
"refDispersion":
|
|
694
|
-
"refFresnelRange":
|
|
695
|
-
"refFresnelHardness":
|
|
696
|
-
"refFresnelFactor":
|
|
731
|
+
"refThickness": 9.48,
|
|
732
|
+
"refFactor": 1.65,
|
|
733
|
+
"refDispersion": 28.91,
|
|
734
|
+
"refFresnelRange": 16.82,
|
|
735
|
+
"refFresnelHardness": 19.7,
|
|
736
|
+
"refFresnelFactor": 18.71,
|
|
697
737
|
"glareRange": 22.17,
|
|
698
738
|
"glareHardness": 27.78,
|
|
699
|
-
"glareFactor":
|
|
700
|
-
"glareConvergence":
|
|
701
|
-
"glareOppositeFactor":
|
|
739
|
+
"glareFactor": 23.51,
|
|
740
|
+
"glareConvergence": 32,
|
|
741
|
+
"glareOppositeFactor": 57.63,
|
|
702
742
|
"glareAngle": -42.329999999999984,
|
|
703
|
-
"blurRadius":
|
|
704
|
-
"blurEdge":
|
|
743
|
+
"blurRadius": 14,
|
|
744
|
+
"blurEdge": true,
|
|
705
745
|
"tint": {
|
|
706
746
|
"r": 28,
|
|
707
747
|
"g": 28,
|
|
708
748
|
"b": 34,
|
|
709
|
-
"a": 0.
|
|
749
|
+
"a": 0.44886246088942827
|
|
710
750
|
},
|
|
711
751
|
"shadowExpand": 12.5,
|
|
712
752
|
"shadowFactor": 15.444000000000003,
|
|
@@ -714,12 +754,12 @@
|
|
|
714
754
|
"x": 0,
|
|
715
755
|
"y": -4
|
|
716
756
|
},
|
|
717
|
-
"borderWidth": 1,
|
|
757
|
+
"borderWidth": 1.1,
|
|
718
758
|
"borderColor": {
|
|
719
|
-
"r":
|
|
720
|
-
"g":
|
|
721
|
-
"b":
|
|
722
|
-
"a": 0.
|
|
759
|
+
"r": 219,
|
|
760
|
+
"g": 222,
|
|
761
|
+
"b": 246,
|
|
762
|
+
"a": 0.14088337104868587
|
|
723
763
|
},
|
|
724
764
|
"borderAdapt": false,
|
|
725
765
|
"adaptTint": 100,
|
|
@@ -804,6 +844,206 @@
|
|
|
804
844
|
"borderAdapt": false,
|
|
805
845
|
"adaptTint": 100,
|
|
806
846
|
"adaptShadow": 100
|
|
847
|
+
},
|
|
848
|
+
"thin": {
|
|
849
|
+
"cornerRadius": 14,
|
|
850
|
+
"cornerRoundness": 5,
|
|
851
|
+
"refThickness": 4.1899999999999995,
|
|
852
|
+
"refFactor": 1.74,
|
|
853
|
+
"refDispersion": 21.38,
|
|
854
|
+
"refFresnelRange": 14.48,
|
|
855
|
+
"refFresnelHardness": 26.59,
|
|
856
|
+
"refFresnelFactor": 36.27,
|
|
857
|
+
"glareRange": 0,
|
|
858
|
+
"glareHardness": 0,
|
|
859
|
+
"glareFactor": 0,
|
|
860
|
+
"glareConvergence": 0,
|
|
861
|
+
"glareOppositeFactor": 0,
|
|
862
|
+
"glareAngle": 0,
|
|
863
|
+
"blurRadius": 16,
|
|
864
|
+
"blurEdge": true,
|
|
865
|
+
"tint": {
|
|
866
|
+
"r": 28,
|
|
867
|
+
"g": 28,
|
|
868
|
+
"b": 34,
|
|
869
|
+
"a": 0.38
|
|
870
|
+
},
|
|
871
|
+
"shadowExpand": 12,
|
|
872
|
+
"shadowFactor": 4.4,
|
|
873
|
+
"shadowPosition": {
|
|
874
|
+
"x": 0,
|
|
875
|
+
"y": -3
|
|
876
|
+
},
|
|
877
|
+
"borderWidth": 0,
|
|
878
|
+
"borderColor": {
|
|
879
|
+
"r": 255,
|
|
880
|
+
"g": 255,
|
|
881
|
+
"b": 255,
|
|
882
|
+
"a": 0.4
|
|
883
|
+
},
|
|
884
|
+
"borderAdapt": false,
|
|
885
|
+
"adaptTint": 100,
|
|
886
|
+
"adaptShadow": 100
|
|
887
|
+
},
|
|
888
|
+
"accent": {
|
|
889
|
+
"cornerRadius": 60,
|
|
890
|
+
"cornerRoundness": 7,
|
|
891
|
+
"refThickness": 3.89,
|
|
892
|
+
"refFactor": 1.1400000000000001,
|
|
893
|
+
"refDispersion": 9.8,
|
|
894
|
+
"refFresnelRange": 15.49,
|
|
895
|
+
"refFresnelHardness": 22.990000000000002,
|
|
896
|
+
"refFresnelFactor": 60.608000000000004,
|
|
897
|
+
"glareRange": 26.330000000000002,
|
|
898
|
+
"glareHardness": 28.7,
|
|
899
|
+
"glareFactor": 22.950000000000003,
|
|
900
|
+
"glareConvergence": 34.04,
|
|
901
|
+
"glareOppositeFactor": 77.3,
|
|
902
|
+
"glareAngle": 36.27000000000001,
|
|
903
|
+
"blurRadius": 18,
|
|
904
|
+
"blurEdge": true,
|
|
905
|
+
"tint": {
|
|
906
|
+
"r": 28,
|
|
907
|
+
"g": 28,
|
|
908
|
+
"b": 34,
|
|
909
|
+
"a": 0.48208989135374064
|
|
910
|
+
},
|
|
911
|
+
"shadowExpand": 7.67,
|
|
912
|
+
"shadowFactor": 11.66,
|
|
913
|
+
"shadowPosition": {
|
|
914
|
+
"x": 0,
|
|
915
|
+
"y": -4
|
|
916
|
+
},
|
|
917
|
+
"borderWidth": 1,
|
|
918
|
+
"borderColor": {
|
|
919
|
+
"r": 64,
|
|
920
|
+
"g": 68,
|
|
921
|
+
"b": 84,
|
|
922
|
+
"a": 0.2173581292722815
|
|
923
|
+
},
|
|
924
|
+
"borderAdapt": false,
|
|
925
|
+
"adaptTint": 100,
|
|
926
|
+
"adaptShadow": 100
|
|
927
|
+
},
|
|
928
|
+
"toolbar": {
|
|
929
|
+
"cornerRadius": 60,
|
|
930
|
+
"cornerRoundness": 5,
|
|
931
|
+
"refThickness": 5.3100000000000005,
|
|
932
|
+
"refFactor": 1.28,
|
|
933
|
+
"refDispersion": 5.8100000000000005,
|
|
934
|
+
"refFresnelRange": 3.19,
|
|
935
|
+
"refFresnelHardness": 12.68,
|
|
936
|
+
"refFresnelFactor": 80,
|
|
937
|
+
"glareRange": 0,
|
|
938
|
+
"glareHardness": 0,
|
|
939
|
+
"glareFactor": 0,
|
|
940
|
+
"glareConvergence": 0,
|
|
941
|
+
"glareOppositeFactor": 0,
|
|
942
|
+
"glareAngle": -180,
|
|
943
|
+
"blurRadius": 136,
|
|
944
|
+
"blurEdge": true,
|
|
945
|
+
"tint": {
|
|
946
|
+
"r": 28,
|
|
947
|
+
"g": 28,
|
|
948
|
+
"b": 34,
|
|
949
|
+
"a": 0.5503064861164135
|
|
950
|
+
},
|
|
951
|
+
"shadowExpand": 18.44,
|
|
952
|
+
"shadowFactor": 15.488000000000001,
|
|
953
|
+
"shadowPosition": {
|
|
954
|
+
"x": 0,
|
|
955
|
+
"y": -3.799999999999997
|
|
956
|
+
},
|
|
957
|
+
"borderWidth": 1,
|
|
958
|
+
"borderColor": {
|
|
959
|
+
"r": 255,
|
|
960
|
+
"g": 255,
|
|
961
|
+
"b": 255,
|
|
962
|
+
"a": 1
|
|
963
|
+
},
|
|
964
|
+
"borderAdapt": false,
|
|
965
|
+
"adaptTint": 100,
|
|
966
|
+
"adaptShadow": 100
|
|
967
|
+
},
|
|
968
|
+
"menu": {
|
|
969
|
+
"cornerRadius": 16,
|
|
970
|
+
"cornerRoundness": 5,
|
|
971
|
+
"refThickness": 25.54,
|
|
972
|
+
"refFactor": 1.08,
|
|
973
|
+
"refDispersion": 8.96,
|
|
974
|
+
"refFresnelRange": 15.42,
|
|
975
|
+
"refFresnelHardness": 52.88,
|
|
976
|
+
"refFresnelFactor": 80,
|
|
977
|
+
"glareRange": 19.64,
|
|
978
|
+
"glareHardness": 29.07,
|
|
979
|
+
"glareFactor": 16.357499999999998,
|
|
980
|
+
"glareConvergence": 0,
|
|
981
|
+
"glareOppositeFactor": 91.9,
|
|
982
|
+
"glareAngle": 166.93,
|
|
983
|
+
"blurRadius": 45,
|
|
984
|
+
"blurEdge": true,
|
|
985
|
+
"tint": {
|
|
986
|
+
"r": 28,
|
|
987
|
+
"g": 28,
|
|
988
|
+
"b": 34,
|
|
989
|
+
"a": 0.38
|
|
990
|
+
},
|
|
991
|
+
"shadowExpand": 24,
|
|
992
|
+
"shadowFactor": 20.834000000000003,
|
|
993
|
+
"shadowPosition": {
|
|
994
|
+
"x": 0,
|
|
995
|
+
"y": -10.399999999999999
|
|
996
|
+
},
|
|
997
|
+
"borderWidth": 1,
|
|
998
|
+
"borderColor": {
|
|
999
|
+
"r": 89,
|
|
1000
|
+
"g": 85,
|
|
1001
|
+
"b": 74,
|
|
1002
|
+
"a": 0.6055977974285512
|
|
1003
|
+
},
|
|
1004
|
+
"borderAdapt": false,
|
|
1005
|
+
"adaptTint": 100,
|
|
1006
|
+
"adaptShadow": 100
|
|
1007
|
+
},
|
|
1008
|
+
"pane": {
|
|
1009
|
+
"cornerRadius": 36,
|
|
1010
|
+
"cornerRoundness": 5,
|
|
1011
|
+
"refThickness": 29.03,
|
|
1012
|
+
"refFactor": 2.05,
|
|
1013
|
+
"refDispersion": 18.04,
|
|
1014
|
+
"refFresnelRange": 3.43,
|
|
1015
|
+
"refFresnelHardness": 12.61,
|
|
1016
|
+
"refFresnelFactor": 80,
|
|
1017
|
+
"glareRange": 0,
|
|
1018
|
+
"glareHardness": 0,
|
|
1019
|
+
"glareFactor": 0,
|
|
1020
|
+
"glareConvergence": 0,
|
|
1021
|
+
"glareOppositeFactor": 0,
|
|
1022
|
+
"glareAngle": 0,
|
|
1023
|
+
"blurRadius": 75,
|
|
1024
|
+
"blurEdge": true,
|
|
1025
|
+
"tint": {
|
|
1026
|
+
"r": 28,
|
|
1027
|
+
"g": 28,
|
|
1028
|
+
"b": 34,
|
|
1029
|
+
"a": 0.4774466063535341
|
|
1030
|
+
},
|
|
1031
|
+
"shadowExpand": 18.41,
|
|
1032
|
+
"shadowFactor": 23.122,
|
|
1033
|
+
"shadowPosition": {
|
|
1034
|
+
"x": 0,
|
|
1035
|
+
"y": -3
|
|
1036
|
+
},
|
|
1037
|
+
"borderWidth": 1,
|
|
1038
|
+
"borderColor": {
|
|
1039
|
+
"r": 255,
|
|
1040
|
+
"g": 255,
|
|
1041
|
+
"b": 255,
|
|
1042
|
+
"a": 1
|
|
1043
|
+
},
|
|
1044
|
+
"borderAdapt": false,
|
|
1045
|
+
"adaptTint": 100,
|
|
1046
|
+
"adaptShadow": 100
|
|
807
1047
|
}
|
|
808
1048
|
}
|
|
809
1049
|
}
|
package/package.json
CHANGED
package/src/widgets/controls.js
CHANGED
|
@@ -66,7 +66,7 @@ export function createControls(core, primitives, glassWidget) {
|
|
|
66
66
|
const height = props.compact ? COMPACT_HEIGHT : props.h ?? BUTTON_HEIGHT
|
|
67
67
|
const pad = props.pad ?? [0, labelText ? 16 : (height - 16) / 2]
|
|
68
68
|
const content = buttonContent(labelText, props)
|
|
69
|
-
const layoutProps = { direction: 'row', gap: 6, align: 'center', justify: 'center', h: height, pad, w: props.w, fr: props.fr, minW: props.minW ?? height }
|
|
69
|
+
const layoutProps = { direction: 'row', gap: 6, align: 'center', justify: props.justify ?? 'center', h: height, pad, w: props.w, fr: props.fr, minW: props.minW ?? height }
|
|
70
70
|
const inside = insideGlass()
|
|
71
71
|
const ownGlass = props.glass ?? (!inside || (core.toolbarDepth > 0 && core.capsuleDepth === 0) || (props.primary && core.capsuleDepth === 0))
|
|
72
72
|
if (!ownGlass) {
|