wesnoth/data/gui/themes/celes/widgets/button_25x25.cfg
Subhraman Sarkar 6b8c2e15e7 theme update for modern and rename themes
include new definitions and updated versions of existing definitions
"default/classic" and "modern" has been renamed to "Parchment" and "Celes" to avoid confusion
2025-01-09 09:02:42 +05:30

495 lines
8.5 KiB
INI

#textdomain wesnoth-lib
###
### Definition of non-standard buttons of varying sizes
###
#define _GUI_RESOLUTION RESOLUTION SIZE IMAGE IMAGE_OVERLAY IPF
[resolution]
{RESOLUTION}
min_width = {SIZE}
min_height = {SIZE}
default_width = {SIZE}
default_height = {SIZE}
max_width = {SIZE}
max_height = {SIZE}
[state_enabled]
[draw]
[image]
w = "(width)"
h = "(height)"
name = {IMAGE} + ".png{IPF}"
[/image]
[image]
{GUI_CENTERED_IMAGE}
name = {IMAGE_OVERLAY} + "-active.png{IPF}"
[/image]
[/draw]
[/state_enabled]
[state_disabled]
[draw]
[image]
w = "(width)"
h = "(height)"
name = {IMAGE} + ".png~GS(){IPF}"
[/image]
[image]
{GUI_CENTERED_IMAGE}
name = {IMAGE_OVERLAY} + ".png~GS(){IPF}"
[/image]
[/draw]
[/state_disabled]
[state_pressed]
[draw]
[image]
w = {SIZE}
h = {SIZE}
name = {IMAGE} + "-pressed.png{IPF}"
[/image]
[image]
{GUI_CENTERED_IMAGE}
name = {IMAGE_OVERLAY} + "-active.png{IPF}"
[/image]
[/draw]
[/state_pressed]
[state_focused]
[draw]
[image]
w = "(width)"
h = "(height)"
name = {IMAGE} + "-active.png{IPF}"
[/image]
[image]
{GUI_CENTERED_IMAGE}
name = {IMAGE_OVERLAY} + "-pressed.png{IPF}"
[/image]
[/draw]
[/state_focused]
[/resolution]
#enddef
#define _GUI_DEFINITION ID DESCRIPTION IMAGE IMAGE_OVERLAY IPF
[button_definition]
id = {ID}
description = {DESCRIPTION}
{_GUI_RESOLUTION () 25 ({IMAGE}) ({IMAGE_OVERLAY}) ({IPF})}
[/button_definition]
#enddef
# Scrollbar buttons
{_GUI_DEFINITION
"down_arrow"
"Down arrow button for a scrollbar."
"buttons/modern/normal/background"
"icons/arrows/arrows_ornate_down_25"
"~CROP(0,0,25,25)"
}
{_GUI_DEFINITION
"up_arrow"
"Up arrow button for a scrollbar."
"buttons/modern/normal/background"
"icons/arrows/arrows_ornate_up_25"
"~CROP(0,0,25,25)"
}
{_GUI_DEFINITION
"left_arrow"
"Left arrow button for a scrollbar."
"buttons/modern/normal/background"
"icons/arrows/arrows_ornate_left_25"
"~CROP(0,0,25,25)"
}
{_GUI_DEFINITION
"right_arrow"
"Right arrow button for a scrollbar."
"buttons/modern/normal/background"
"icons/arrows/arrows_ornate_right_25"
"~CROP(0,0,25,25)"
}
{_GUI_DEFINITION
"add"
"Addition button."
"buttons/modern/normal/background"
"icons/action/ornate_add_25"
"~CROP(0,0,25,25)"
}
{_GUI_DEFINITION
"delete"
"Deletion button."
"buttons/modern/normal/background"
"icons/action/ornate_delete_25"
"~CROP(0,0,25,25)"
}
{_GUI_DEFINITION
"help"
"Help button."
"buttons/modern/normal/background"
"icons/action/help_25"
"~CROP(0,0,25,25)"
}
[button_definition]
id = "settings_mp_staging"
description = "MP Staging faction select button."
{_GUI_RESOLUTION () 60 ("buttons/modern/normal/background") ("icons/action/editor-tool-unit_60") ("~CROP(0,0,25,25)")}
[/button_definition]
[button_definition]
id = "big_trash"
description = "Big trash button"
{_GUI_RESOLUTION () 60 ("buttons/modern/normal/background") ("icons/action/trash_25") ("~CROP(0,0,25,25)~SCALE_SHARP(200%,200%)")}
[/button_definition]
# Transparent scrollbar buttons
{_GUI_DEFINITION
"down_arrow_transparent"
"Down arrow button for a transparent scrollbar."
"buttons/modern/normal/background"
"icons/arrows/arrows_ornate_down_25"
"~CROP(0,0,25,25)~O(65%)"
}
{_GUI_DEFINITION
"up_arrow_transparent"
"Up arrow button for a transparent scrollbar."
"buttons/modern/normal/background"
"icons/arrows/arrows_ornate_up_25"
"~CROP(0,0,25,25)~O(65%)"
}
{_GUI_DEFINITION
"left_arrow_transparent"
"Left arrow button for a transparent scrollbar."
"buttons/modern/normal/background"
"icons/arrows/arrows_ornate_left_25"
"~CROP(0,0,25,25)~O(65%)"
}
{_GUI_DEFINITION
"right_arrow_transparent"
"Right arrow button for a transparent scrollbar."
"buttons/modern/normal/background"
"icons/arrows/arrows_ornate_right_25"
"~CROP(0,0,25,25)~O(65%)"
}
{_GUI_DEFINITION
"add_transparent"
"Transparent addition button."
"buttons/modern/normal/background"
"icons/action/ornate_add_25"
"~CROP(0,0,25,25)~O(65%)"
}
{_GUI_DEFINITION
"delete_transparent"
"Transparent deletion button."
"buttons/modern/normal/background"
"icons/action/ornate_delete_25"
"~CROP(0,0,25,25)~O(65%)"
}
# Action icon buttons
{_GUI_DEFINITION
"action_go"
"Right arrow button for go/browse actions."
"buttons/modern/normal/background"
"icons/arrows/arrows_right_25"
"~CROP(0,0,25,25)"
}
{_GUI_DEFINITION
"action_browse"
"Button for go/browse actions."
"buttons/modern/normal/background"
"icons/action/browse_25"
"~CROP(0,0,25,25)"
}
{_GUI_DEFINITION
"action_browse_experimental"
"Button for go/browse actions."
"buttons/modern/normal/background"
"icons/action/browse_25"
"~CROP(0,0,25,25)"
}
{_GUI_DEFINITION
"action_about"
"Button for displaying the game version info."
"buttons/modern/normal/background"
"icons/action/about_25"
"~CROP(0,0,25,25)"
}
{_GUI_DEFINITION
"action_language"
"Button for displaying the language menu."
"buttons/modern/normal/background"
"icons/action/language_25"
"~CROP(0,0,25,25)"
}
{_GUI_DEFINITION
"left_arrow_short_ornate"
"Left arrow action button."
"buttons/modern/normal/background"
"icons/arrows/short_arrow_ornate_left_25"
"~CROP(0,0,25,25)"
}
{_GUI_DEFINITION
"right_arrow_short_ornate"
"Right arrow action button."
"buttons/modern/normal/background"
"icons/arrows/short_arrow_ornate_right_25"
"~CROP(0,0,25,25)"
}
#
# Minimal-style buttons
# These buttons don't have a background, only the overlay
#
#define _GUI_RESOLUTION_MINIMAL RESOLUTION SIZE IMAGE
[resolution]
{RESOLUTION}
min_width = {SIZE}
min_height = {SIZE}
default_width = {SIZE}
default_height = {SIZE}
max_width = {SIZE}
max_height = {SIZE}
[state_enabled]
[draw]
[image]
w = {SIZE}
h = {SIZE}
name = {IMAGE} + ".png"
[/image]
[/draw]
[/state_enabled]
[state_disabled]
[draw]
[image]
w = {SIZE}
h = {SIZE}
name = {IMAGE} + ".png~GS()"
[/image]
[/draw]
[/state_disabled]
[state_pressed]
[draw]
[image]
w = {SIZE}
h = {SIZE}
name = {IMAGE} + "-pressed.png"
[/image]
[/draw]
[/state_pressed]
[state_focused]
[draw]
[image]
w = {SIZE}
h = {SIZE}
name = {IMAGE} + "-active.png"
[/image]
[/draw]
[/state_focused]
[/resolution]
#enddef
#define _GUI_DEFINITION_MINIMAL SIZE ID DESCRIPTION IMAGE
[button_definition]
id = {ID}
description = {DESCRIPTION}
{_GUI_RESOLUTION_MINIMAL () ({SIZE}) ({IMAGE})}
[/button_definition]
#enddef
{_GUI_DEFINITION_MINIMAL 25
"close"
"Minimal-style close button."
"icons/action/close_25"
}
{_GUI_DEFINITION_MINIMAL 25
"trash"
"Minimal-style trash button."
"icons/action/trash_25"
}
{_GUI_DEFINITION_MINIMAL 30
"settings"
"Settings button"
"icons/action/settings"
}
{_GUI_DEFINITION_MINIMAL 64
"addon_install_large"
"Minimal install button"
"icons/addons_manager/install-large"
}
{_GUI_DEFINITION_MINIMAL 64
"addon_uninstall_large"
"Minimal uninstall button"
"icons/addons_manager/uninstall-large"
}
{_GUI_DEFINITION_MINIMAL 64
"addon_upgrade_large"
"Minimal upgrade button"
"icons/addons_manager/update-large"
}
{_GUI_DEFINITION_MINIMAL 64
"addon_publish_large"
"Minimal publish button"
"icons/addons_manager/publish-large"
}
{_GUI_DEFINITION_MINIMAL 64
"addon_delete_large"
"Minimal delete button"
"icons/addons_manager/delete-large"
}
{_GUI_DEFINITION_MINIMAL 30
"addon_install_small"
"Minimal install button"
"icons/addons_manager/install-small"
}
{_GUI_DEFINITION_MINIMAL 30
"addon_uninstall_small"
"Minimal install button"
"icons/addons_manager/uninstall-small"
}
{_GUI_DEFINITION_MINIMAL 30
"addon_update_small"
"Minimal install button"
"icons/addons_manager/update-small"
}
{_GUI_DEFINITION_MINIMAL 30
"addon_publish_small"
"Minimal install button"
"icons/addons_manager/publish-small"
}
{_GUI_DEFINITION_MINIMAL 30
"help_30"
"Minimal install button"
"icons/action/help_30"
}
{_GUI_DEFINITION_MINIMAL 30
"minimal_arrow"
"Minimal arrow button"
"icons/arrows/double_arrow_right_30"
}
{_GUI_DEFINITION
"download_arrow"
"Minimal download arrow button"
"buttons/modern/normal/background"
"icons/arrows/arrows_down_30"
"~CROP(0,0,30,30)"
}
{_GUI_DEFINITION
"preview"
"Preview button"
"buttons/modern/normal/background"
"icons/action/preview_25"
()
}
{_GUI_DEFINITION
"play"
"Play button"
"buttons/modern/normal/background"
"icons/action/play_25"
()
}
#undef _GUI_DEFINITION
#undef _GUI_DEFINITION_MINIMAL
#undef _GUI_RESOLUTION
#undef _GUI_RESOLUTION_MINIMAL