Rename button-related enums (#3463)

This PR renames the `ButtonStyle2` and `ButtonSize2` enums to
`ButtonStyle` and `ButtonSize`, respectively.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2023-11-30 12:04:23 -05:00 committed by GitHub
parent b64fe04803
commit 0a8a84f656
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 74 additions and 70 deletions

View file

@ -1,7 +1,7 @@
use gpui::AnyView;
use crate::prelude::*;
use crate::{ButtonCommon, ButtonLike, ButtonSize2, ButtonStyle2, Label, LineHeightStyle};
use crate::{ButtonCommon, ButtonLike, ButtonSize, ButtonStyle, Label, LineHeightStyle};
#[derive(IntoElement)]
pub struct Button {
@ -54,12 +54,12 @@ impl ButtonCommon for Button {
self.base.id()
}
fn style(mut self, style: ButtonStyle2) -> Self {
fn style(mut self, style: ButtonStyle) -> Self {
self.base = self.base.style(style);
self
}
fn size(mut self, size: ButtonSize2) -> Self {
fn size(mut self, size: ButtonSize) -> Self {
self.base = self.base.size(size);
self
}