Skip to content

Commit

Permalink
Begin adding IconButtonStyle
Browse files Browse the repository at this point in the history
  • Loading branch information
eonist committed Oct 21, 2024
1 parent becfcd1 commit 29f3e81
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import SwiftUI
/**
* Creates a ToggleButonStyle for Button
* - Description: The button should have rounded corners, have white text, and dark gray background, it should have a little bit more padding horisontally than vertically. also make a preview
* - Fixme: ⚠️️ Turn the above into doc, use copilot
*/
struct ActionButtonStyle: ButtonStyle {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,13 @@ extension SideBarHeader {
.toggleButtonStyle
}
}
// - Fixme: ⚠️️ add IconButtonStyle which should be a button style
// use apple system icon: left_arrow
// have rounded corners 4px
// have a background color that is darkGray / lightGray
// have a fill color for icon that is white / black .opacity(0.6)
// icon should be 16px w/h
// icon should have 4px padding all arround
// the icon should be settable from extension iconButtonStyle(iconName: "")
// make one for left arrow, right arrow, full_screen, back_chevron_icon,
// make it animate transperancy on showing / hiding

0 comments on commit 29f3e81

Please sign in to comment.