-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LateNight: use button templates (almost) everywhere, fix blurred beat…
…grid icons
- Loading branch information
Showing
18 changed files
with
561 additions
and
889 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<!-- | ||
Description: | ||
A button that has click or display controls. | ||
Variables: | ||
ObjectName : object name | ||
ToolTipID : standard Tooltip from mixxx db | ||
see: https://github.com/mixxxdj/mixxx/blob/master/src/skin/TooltipIds.cpp | ||
Size : button size | ||
state_X_text : label text for state X | ||
state_X_pressed : background graphic for pressed state X | ||
state_X_unpressed : background graphic for unpressed state X | ||
Align : alignment of text | ||
ConfigKey : left-click control | ||
--> | ||
<Template> | ||
<PushButton> | ||
<TooltipId><Variable name="TooltipId"/></TooltipId> | ||
<ObjectName><Variable name="ObjectName"/></ObjectName> | ||
<Size><Variable name="Size"/></Size> | ||
<NumberStates>2</NumberStates> | ||
<RightClickIsPushButton>false</RightClickIsPushButton> | ||
<State> | ||
<Number>0</Number> | ||
<Text><Variable name="state_0_text"/></Text> | ||
<Alignment><Variable name="Align"/></Alignment> | ||
<Pressed scalemode="STRETCH_ASPECT">skin:/buttons/btn_<Variable name="icon"/>_down.svg</Pressed> | ||
<Unpressed scalemode="STRETCH_ASPECT">skin:/buttons/btn_<Variable name="icon"/>.svg</Unpressed> | ||
</State> | ||
<State> | ||
<Number>1</Number> | ||
<Text><Variable name="state_1_text"/></Text> | ||
<Alignment><Variable name="Align"/></Alignment> | ||
<Pressed scalemode="STRETCH_ASPECT">skin:/buttons/btn_<Variable name="icon"/>_overdown.svg</Pressed> | ||
<Unpressed scalemode="STRETCH_ASPECT">skin:/buttons/btn_<Variable name="icon"/>_over.svg</Unpressed> | ||
</State> | ||
<Connection> | ||
<ConfigKey persist="true"><Variable name="ConfigKey"/></ConfigKey> | ||
<ButtonState>LeftButton</ButtonState> | ||
</Connection> | ||
</PushButton> | ||
</Template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<!-- | ||
Description: | ||
A button that has click or display controls. | ||
Variables: | ||
ObjectName : object name | ||
ToolTipID : standard Tooltip from mixxx db | ||
see: https://github.com/mixxxdj/mixxx/blob/master/src/skin/TooltipIds.cpp | ||
Size : button size | ||
state_X_text : label text for state X | ||
state_X_pressed : background graphic for pressed state X | ||
state_X_unpressed : background graphic for unpressed state X | ||
Align : alignment of text | ||
ConfigKey : left-click control | ||
ConfigKeyDisp : display control | ||
--> | ||
<Template> | ||
<PushButton> | ||
<TooltipId><Variable name="TooltipId"/></TooltipId> | ||
<ObjectName><Variable name="ObjectName"/></ObjectName> | ||
<Size><Variable name="Size"/></Size> | ||
<NumberStates>3</NumberStates> | ||
<State> | ||
<Number>0</Number> | ||
<Text><Variable name="state_0_text"/></Text> | ||
<Pressed scalemode="STRETCH_ASPECT">skin:/buttons/btn_<Variable name="state_0"/>.svg</Pressed> | ||
<Unpressed scalemode="STRETCH_ASPECT">skin:/buttons/btn_<Variable name="state_0"/>.svg</Unpressed> | ||
<Alignment><Variable name="Align"/></Alignment> | ||
</State> | ||
<State> | ||
<Number>1</Number> | ||
<Text><Variable name="state_1_text"/></Text> | ||
<Pressed scalemode="STRETCH_ASPECT">skin:/buttons/btn_<Variable name="state_1"/>.svg</Pressed> | ||
<Unpressed scalemode="STRETCH_ASPECT">skin:/buttons/btn_<Variable name="state_1"/>.svg</Unpressed> | ||
<Alignment><Variable name="Align"/></Alignment> | ||
</State> | ||
<State> | ||
<Number>2</Number> | ||
<Text><Variable name="state_2_text"/></Text> | ||
<Pressed scalemode="STRETCH_ASPECT">skin:/buttons/btn_<Variable name="state_2"/>.svg</Pressed> | ||
<Unpressed scalemode="STRETCH_ASPECT">skin:/buttons/btn_<Variable name="state_2"/>.svg</Unpressed> | ||
<Alignment><Variable name="Align"/></Alignment> | ||
</State> | ||
<Connection> | ||
<ConfigKey><Variable name="ConfigKey"/></ConfigKey> | ||
<EmitOnPressAndRelease>true</EmitOnPressAndRelease> | ||
<ButtonState>LeftButton</ButtonState> | ||
</Connection> | ||
</PushButton> | ||
</Template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<!-- | ||
Description: | ||
A button that has click or display controls. | ||
Variables: | ||
ObjectName : object name | ||
ToolTipID : standard Tooltip from mixxx db | ||
see: https://github.com/mixxxdj/mixxx/blob/master/src/skin/TooltipIds.cpp | ||
Size : button size | ||
state_X_text : label text for state X | ||
state_X_pressed : background graphic for pressed state X | ||
state_X_unpressed : background graphic for unpressed state X | ||
Align : alignment of text | ||
ConfigKey : left-click control | ||
ConfigKeyDisp : display control | ||
--> | ||
<Template> | ||
<PushButton> | ||
<TooltipId><Variable name="TooltipId"/></TooltipId> | ||
<ObjectName><Variable name="ObjectName"/></ObjectName> | ||
<Size><Variable name="Size"/></Size> | ||
<NumberStates>3</NumberStates> | ||
<State> | ||
<Number>0</Number> | ||
<Text><Variable name="state_0_text"/></Text> | ||
<Pressed scalemode="STRETCH_ASPECT">skin:/buttons/btn_<Variable name="state_0"/>.svg</Pressed> | ||
<Unpressed scalemode="STRETCH_ASPECT">skin:/buttons/btn_<Variable name="state_0"/>.svg</Unpressed> | ||
<Alignment><Variable name="Align"/></Alignment> | ||
</State> | ||
<State> | ||
<Number>1</Number> | ||
<Text><Variable name="state_1_text"/></Text> | ||
<Pressed scalemode="STRETCH_ASPECT">skin:/buttons/btn_<Variable name="state_1"/>.svg</Pressed> | ||
<Unpressed scalemode="STRETCH_ASPECT">skin:/buttons/btn_<Variable name="state_1"/>.svg</Unpressed> | ||
<Alignment><Variable name="Align"/></Alignment> | ||
</State> | ||
<State> | ||
<Number>2</Number> | ||
<Text><Variable name="state_2_text"/></Text> | ||
<Pressed scalemode="STRETCH_ASPECT">skin:/buttons/btn_<Variable name="state_2"/>.svg</Pressed> | ||
<Unpressed scalemode="STRETCH_ASPECT">skin:/buttons/btn_<Variable name="state_2"/>.svg</Unpressed> | ||
<Alignment><Variable name="Align"/></Alignment> | ||
</State> | ||
<Connection> | ||
<ConfigKey persist="true"><Variable name="ConfigKey"/></ConfigKey> | ||
<ButtonState>LeftButton</ButtonState> | ||
</Connection> | ||
</PushButton> | ||
</Template> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.