@@ -308,13 +308,13 @@ export const viewerUISchema: UISchema = {
308308 breakpoints : {
309309 sm : {
310310 maxWidth : 640 ,
311- hide : [ 'redo-button ' , 'undo-button ' ] ,
311+ hide : [ 'add-text ' , 'add-stamp ' ] ,
312312 show : [ 'overflow-annotation-tools' ] ,
313313 } ,
314314 md : {
315315 minWidth : 640 ,
316- show : [ 'redo-button' , 'undo-button' ] ,
317316 hide : [ 'overflow-annotation-tools' ] ,
317+ show : [ 'add-text' , 'add-stamp' ] ,
318318 } ,
319319 } ,
320320 } ,
@@ -370,6 +370,13 @@ export const viewerUISchema: UISchema = {
370370 variant : 'icon' ,
371371 categories : [ 'annotation' , 'annotation-stamp' ] ,
372372 } ,
373+ {
374+ type : 'command-button' ,
375+ id : 'overflow-annotation-tools' ,
376+ commandId : 'annotation:overflow-tools' ,
377+ variant : 'icon' ,
378+ categories : [ 'annotation' , 'annotation-overflow' ] ,
379+ } ,
373380 {
374381 type : 'divider' ,
375382 id : 'annotation-tools-divider-1' ,
@@ -404,13 +411,6 @@ export const viewerUISchema: UISchema = {
404411 variant : 'icon' ,
405412 categories : [ 'history' , 'history-redo' ] ,
406413 } ,
407- {
408- type : 'command-button' ,
409- id : 'overflow-annotation-tools' ,
410- commandId : 'annotation:overflow-tools' ,
411- variant : 'icon' ,
412- categories : [ 'annotation' , 'annotation-overflow' ] ,
413- } ,
414414 ] ,
415415 } ,
416416 { type : 'spacer' , id : 'spacer-4' , flex : true } ,
@@ -424,6 +424,20 @@ export const viewerUISchema: UISchema = {
424424 slot : 'secondary' ,
425425 order : 0 ,
426426 } ,
427+ responsive : {
428+ breakpoints : {
429+ sm : {
430+ maxWidth : 640 ,
431+ hide : [ 'add-polygon' , 'add-polyline' ] ,
432+ show : [ 'overflow-shapes-tools' ] ,
433+ } ,
434+ md : {
435+ minWidth : 640 ,
436+ hide : [ 'overflow-shapes-tools' ] ,
437+ show : [ 'add-polygon' , 'add-polyline' ] ,
438+ } ,
439+ } ,
440+ } ,
427441 permanent : false ,
428442 categories : [ 'annotation' , 'annotation-shape' ] ,
429443 items : [
@@ -476,6 +490,13 @@ export const viewerUISchema: UISchema = {
476490 variant : 'icon' ,
477491 categories : [ 'annotation' , 'annotation-shape' , 'annotation-polyline' ] ,
478492 } ,
493+ {
494+ type : 'command-button' ,
495+ id : 'overflow-shapes-tools' ,
496+ commandId : 'annotation:overflow-shapes' ,
497+ variant : 'icon' ,
498+ categories : [ 'annotation' , 'annotation-shape' , 'annotation-overflow' ] ,
499+ } ,
479500 {
480501 type : 'divider' ,
481502 id : 'shapes-tools-divider-1' ,
@@ -662,6 +683,20 @@ export const viewerUISchema: UISchema = {
662683 hide : [ 'mode:view' , 'mode:annotate' , 'mode:shapes' ] ,
663684 } ,
664685 } ,
686+ localeOverrides : {
687+ groups : [
688+ {
689+ id : 'germanic-languages' ,
690+ locales : [ 'de' , 'nl' ] ,
691+ breakpoints : {
692+ md : {
693+ // Germanic languages hide shapes from toolbar at md, so show it in overflow
694+ replaceHide : [ 'mode:view' , 'mode:annotate' ] ,
695+ } ,
696+ } ,
697+ } ,
698+ ] ,
699+ } ,
665700 } ,
666701 } ,
667702 'zoom-levels-menu' : {
@@ -851,50 +886,16 @@ export const viewerUISchema: UISchema = {
851886 } ,
852887 {
853888 type : 'command' ,
854- id : 'annotation:add-highlight' ,
855- commandId : 'annotation:add-highlight' ,
856- categories : [ 'annotation' , 'annotation-markup' , 'annotation-highlight' ] ,
857- } ,
858- {
859- type : 'command' ,
860- id : 'annotation:add-strikeout' ,
861- commandId : 'annotation:add-strikeout' ,
862- categories : [ 'annotation' , 'annotation-markup' , 'annotation-strikeout' ] ,
863- } ,
864- {
865- type : 'command' ,
866- id : 'annotation:add-underline' ,
867- commandId : 'annotation:add-underline' ,
868- categories : [ 'annotation' , 'annotation-markup' , 'annotation-underline' ] ,
869- } ,
870- {
871- type : 'divider' ,
872- id : 'divider-12' ,
873- } ,
874- {
875- type : 'command' ,
876- id : 'annotation:add-rectangle' ,
877- commandId : 'annotation:add-rectangle' ,
878- categories : [ 'annotation' , 'annotation-shape' , 'annotation-rectangle' ] ,
879- } ,
880- {
881- type : 'command' ,
882- id : 'annotation:add-circle' ,
883- commandId : 'annotation:add-circle' ,
884- categories : [ 'annotation' , 'annotation-shape' , 'annotation-circle' ] ,
885- } ,
886- {
887- type : 'command' ,
888- id : 'annotation:add-line' ,
889- commandId : 'annotation:add-line' ,
890- categories : [ 'annotation' , 'annotation-shape' , 'annotation-line' ] ,
891- } ,
892- {
893- type : 'command' ,
894- id : 'annotation:add-arrow' ,
895- commandId : 'annotation:add-arrow' ,
896- categories : [ 'annotation' , 'annotation-shape' , 'annotation-arrow' ] ,
889+ id : 'annotation:add-stamp' ,
890+ commandId : 'annotation:add-stamp' ,
891+ categories : [ 'annotation' , 'annotation-stamp' ] ,
897892 } ,
893+ ] ,
894+ } ,
895+ 'shapes-tools-menu' : {
896+ id : 'shapes-tools-menu' ,
897+ categories : [ 'annotation' , 'annotation-shape' ] ,
898+ items : [
898899 {
899900 type : 'command' ,
900901 id : 'annotation:add-polygon' ,
@@ -907,18 +908,6 @@ export const viewerUISchema: UISchema = {
907908 commandId : 'annotation:add-polyline' ,
908909 categories : [ 'annotation' , 'annotation-shape' , 'annotation-polyline' ] ,
909910 } ,
910- {
911- type : 'command' ,
912- id : 'annotation:add-ink' ,
913- commandId : 'annotation:add-ink' ,
914- categories : [ 'annotation' , 'annotation-ink' ] ,
915- } ,
916- {
917- type : 'command' ,
918- id : 'annotation:add-stamp' ,
919- commandId : 'annotation:add-stamp' ,
920- categories : [ 'annotation' , 'annotation-stamp' ] ,
921- } ,
922911 ] ,
923912 } ,
924913 'page-settings-menu' : {
0 commit comments