Skip to content

Commit

Permalink
Rename Separators to Deprecated and Dividers to Separators, see: phet…
Browse files Browse the repository at this point in the history
  • Loading branch information
marlitas committed Sep 13, 2022
1 parent 8972509 commit d7592bf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions js/Helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import Utils from '../../dot/js/Utils.js';
import Vector2 from '../../dot/js/Vector2.js';
import MeasuringTapeNode from '../../scenery-phet/js/MeasuringTapeNode.js';
import PhetFont from '../../scenery-phet/js/PhetFont.js';
import { CanvasNode, Circle, Color, Display, DOM, DragListener, FireListener, FlowBox, Font, GradientStop, GridBox, HBox, Image, LayoutNode, Line, LinearGradient, mixesHeightSizable, mixesWidthSizable, Node, NodeOptions, NodePattern, Paint, Path, Pattern, PDOMInstance, PressListener, RadialGradient, Rectangle, RichText, RichTextOptions, SceneryEvent, Spacer, TColor, Text, TextOptions, TPaint, Trail, VBox, VDivider, WebGLNode } from '../../scenery/js/imports.js';
import { CanvasNode, Circle, Color, Display, DOM, DragListener, FireListener, FlowBox, Font, GradientStop, GridBox, HBox, Image, LayoutNode, Line, LinearGradient, mixesHeightSizable, mixesWidthSizable, Node, NodeOptions, NodePattern, Paint, Path, Pattern, PDOMInstance, PressListener, RadialGradient, Rectangle, RichText, RichTextOptions, SceneryEvent, Spacer, TColor, Text, TextOptions, TPaint, Trail, VBox, HSeparator, WebGLNode } from '../../scenery/js/imports.js';
import Panel from '../../sun/js/Panel.js';
import AquaRadioButtonGroup from '../../sun/js/AquaRadioButtonGroup.js';
import Tandem from '../../tandem/js/Tandem.js';
Expand Down Expand Up @@ -709,7 +709,7 @@ export default class Helper {
align: 'left',
children: [
createCollapsibleHeaderText( 'Helper', this.helperVisibleProperty, helperReadoutContent ),
new VDivider(),
new HSeparator(),
helperReadoutContent
]
} );
Expand Down
4 changes: 2 additions & 2 deletions js/PhetMenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import optionize from '../../phet-core/js/optionize.js';
import platform from '../../phet-core/js/platform.js';
import stripEmbeddingMarks from '../../phet-core/js/stripEmbeddingMarks.js';
import PickRequired from '../../phet-core/js/types/PickRequired.js';
import { Focus, FocusManager, FullScreen, KeyboardUtils, Node, NodeOptions, openPopup, Path, PDOMUtils, SceneryEvent, VBox, VDivider } from '../../scenery/js/imports.js';
import { Focus, FocusManager, FullScreen, KeyboardUtils, Node, NodeOptions, openPopup, Path, PDOMUtils, SceneryEvent, VBox, HSeparator } from '../../scenery/js/imports.js';
import Dialog from '../../sun/js/Dialog.js';
import MenuItem, { MenuItemOptions } from '../../sun/js/MenuItem.js';
import { PopupableNode } from '../../sun/js/Popupable.js';
Expand Down Expand Up @@ -295,7 +295,7 @@ class PhetMenu extends Node {
stretch: true,
spacing: 2,
children: _.flatten( items.map( item => {
return item.separatorBefore ? [ new VDivider( { stroke: 'gray' } ), item ] : [ item ];
return item.separatorBefore ? [ new HSeparator( { stroke: 'gray' } ), item ] : [ item ];
} ) )
} );

Expand Down
4 changes: 2 additions & 2 deletions js/preferences/PreferencesDialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import EnumerationProperty from '../../../axon/js/EnumerationProperty.js';
import optionize, { EmptySelfOptions } from '../../../phet-core/js/optionize.js';
import PhetFont from '../../../scenery-phet/js/PhetFont.js';
import { KeyboardUtils, Text, VBox, VDivider } from '../../../scenery/js/imports.js';
import { KeyboardUtils, Text, VBox, HSeparator } from '../../../scenery/js/imports.js';
import Dialog, { DialogOptions } from '../../../sun/js/Dialog.js';
import soundManager from '../../../tambo/js/soundManager.js';
import Tandem from '../../../tandem/js/Tandem.js';
Expand Down Expand Up @@ -113,7 +113,7 @@ class PreferencesDialog extends Dialog {
const content = new VBox( {
children: [
preferencesTabs,
new VDivider( {
new HSeparator( {
layoutOptions: {
bottomMargin: 20,
stretch: true
Expand Down

0 comments on commit d7592bf

Please sign in to comment.