Cleaned out the old theme code and moved padding and margins to theme
This commit is contained in:
@@ -2,15 +2,6 @@ package config
|
||||
|
||||
// Config can return global configuration parameters.
|
||||
type Config interface {
|
||||
// Padding returns the amount of internal padding elements should have.
|
||||
// An element's inner content (such as text) should be inset by this
|
||||
// amount, in addition to the inset returned by the pattern of its
|
||||
// background.
|
||||
Padding () int
|
||||
|
||||
// Margin returns how much space should be put in between elements.
|
||||
Margin () int
|
||||
|
||||
// HandleWidth returns how large grab handles should typically be. This
|
||||
// is important for accessibility reasons.
|
||||
HandleWidth () int
|
||||
@@ -26,15 +17,6 @@ type Config interface {
|
||||
// Default specifies default configuration values.
|
||||
type Default struct { }
|
||||
|
||||
// Padding returns the default padding value.
|
||||
func (Default) Padding () int {
|
||||
return 7
|
||||
}
|
||||
|
||||
// Margin returns the default margin value.
|
||||
func (Default) Margin () int {
|
||||
return 8
|
||||
}
|
||||
|
||||
// HandleWidth returns the default handle width value.
|
||||
func (Default) HandleWidth () int {
|
||||
@@ -56,19 +38,6 @@ type Wrapped struct {
|
||||
Config
|
||||
}
|
||||
|
||||
// Padding returns the amount of internal padding elements should have.
|
||||
// An element's inner content (such as text) should be inset by this
|
||||
// amount, in addition to the inset returned by the pattern of its
|
||||
// background.
|
||||
func (wrapped Wrapped) Padding () int {
|
||||
return wrapped.ensure().Padding()
|
||||
}
|
||||
|
||||
// Margin returns how much space should be put in between elements.
|
||||
func (wrapped Wrapped) Margin () int {
|
||||
return wrapped.ensure().Margin()
|
||||
}
|
||||
|
||||
// HandleWidth returns how large grab handles should typically be. This
|
||||
// is important for accessibility reasons.
|
||||
func (wrapped Wrapped) HandleWidth () int {
|
||||
|
||||
Reference in New Issue
Block a user