File tree Expand file tree Collapse file tree 5 files changed +23
-5
lines changed
Expand file tree Collapse file tree 5 files changed +23
-5
lines changed Original file line number Diff line number Diff line change @@ -1806,7 +1806,7 @@ ToSandBox class >> example_CircularContextMenu [
18061806
18071807 pane useCircularContextMenu.
18081808 pane contextMenuBuilder: [ :contextMenu :request |
1809- contextMenu layoutRadius: 80 .
1809+
18101810 item := ToMenuItem new .
18111811 item icon: (iconProvider iconNamed: ' filled_checklist' ).
18121812 contextMenu addItem: item.
@@ -1849,12 +1849,10 @@ ToSandBox class >> example_CircularContextMenuWithSubmenus [
18491849 vpane contextMenuBuilder: [ :contextMenu :request |
18501850 | menuItems item subMenu |
18511851 menuItems := OrderedCollection new .
1852- contextMenu layoutRadius: 80 .
18531852 contextMenu localTheme: ToRawDarkTheme new .
18541853
18551854 1 to: 8 do: [ :i |
18561855 item := ToCircularMenu new .
1857- item layoutRadius: 60 .
18581856 item icon:
18591857 (ToMaterialDesignIconProvider iconNamed: ' outlined_settings' ).
18601858
Original file line number Diff line number Diff line change @@ -21,7 +21,8 @@ TToAnnulusCircularLayoutUser >> layoutRadius [
2121{ #category : #' t - annulus circular layout user' }
2222TToAnnulusCircularLayoutUser >> layoutRadius: aNumber [
2323
24- layoutRadius := aNumber
24+ layoutRadius := aNumber.
25+ self requestConfiguration
2526]
2627
2728{ #category : #' t - annulus circular layout user' }
Original file line number Diff line number Diff line change @@ -46,6 +46,12 @@ ToCircularMenu >> newItemList [
4646 ^ ToCircularMenuList new
4747]
4848
49+ { #category : #skin }
50+ ToCircularMenu >> newRawSkin [
51+
52+ ^ ToCircularMenuSkin new
53+ ]
54+
4955{ #category : #' t - annulus sector layout user' }
5056ToCircularMenu >> stateHolder [
5157
Original file line number Diff line number Diff line change 1+ Class {
2+ #name : #ToCircularMenuSkin ,
3+ #superclass : #ToMenuSkin ,
4+ #category : #' Toplo-Widget-Circular-Menu'
5+ }
6+
7+ { #category : #' event handling' }
8+ ToCircularMenuSkin >> installSkinEvent: anEvent [
9+
10+ super installSkinEvent: anEvent.
11+ anEvent elementDo: [ :e | e layoutRadius: 80 ]
12+ ]
Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ ToCircularMenuWindowSkin >> installSkinEvent: anEvent [
1010 super installSkinEvent: anEvent.
1111 " *** notice that the background should be transparent.
1212 The background should be set in the node containers "
13- anEvent elementDo: [ :e |
13+ anEvent elementDo: [ :e |
14+ e layoutRadius: 80 .
1415 e background: Color transparent.
1516 e border: BlBorder empty.
1617 e padding: BlInsets empty.
You can’t perform that action at this time.
0 commit comments