Skip to content
Snippets Groups Projects
Commit 36181b6b authored by Alexander Rose's avatar Alexander Rose
Browse files

tweak quick style names

parent 9c1d59a2
Branches
No related tags found
No related merge requests found
......@@ -31,7 +31,7 @@ export class StructureQuickStylesControls extends CollapsableControls {
}
export class QuickStyles extends PurePluginUIComponent {
async reset() {
async default() {
const { structures } = this.plugin.managers.structure.hierarchy.selection;
const preset = this.plugin.config.get(PluginConfig.Structure.DefaultRepresentationPreset) || PresetStructureRepresentations.auto.id;
const provider = this.plugin.builders.structure.representation.resolveProvider(preset);
......@@ -93,8 +93,8 @@ export class QuickStyles extends PurePluginUIComponent {
render() {
return <div className='msp-flex-row'>
<Button noOverflow title='Applies default representation preset. Set outline and occlusion effects to defaults.' onClick={() => this.reset()} style={{ width: 'auto' }}>
Reset
<Button noOverflow title='Applies default representation preset. Set outline and occlusion effects to defaults.' onClick={() => this.default()} style={{ width: 'auto' }}>
Default
</Button>
<Button noOverflow title='Applies illustrative representation preset. Enables outline and occlusion effects. Enables ignore-light parameter.' onClick={() => this.illustrative()} style={{ width: 'auto' }}>
Illustrative
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment