prs on Nostr: refactor: add customizable properties to neutral button style (#1805) This PR ...
Published at
2023-12-09 05:03:50Event JSON
{
"id": "d590f9d855ec6dd82fe1c88915558383dd7d4ad8c7fd1db7ec72f931a04ac1a4",
"pubkey": "edf16b1dd61eab353a83af470cc13557029bff6827b4cb9b7fc9bdb632a2b8e6",
"created_at": 1702098230,
"kind": 1,
"tags": [
[
"p",
"32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245"
],
[
"t",
"damuspr"
]
],
"content": "refactor: add customizable properties to neutral button style (#1805)\n\nThis PR refactors the NeutralButtonStyle to take in customizable properties for different button layouts instead of creating a struct for each situation that may arise, for example a small capsule button which I needed. Also added shape representations using NeutralButtonShape for ease of use. \r\n\r\n![neutral buttons](https://github.com/damus-io/damus/assets/14004132/188d8bcd-2fa5-49bc-bd3c-1ccea5c39c02)\r\n\n\ndynamic-neutral-button, 1 commits\n\nhttps://github.com/damus-io/damus/pull/1805",
"sig": "fa93a32313d469b0b0561de915ab2be7f791ed6352c1e647ee421ba3577bae48da186be88c71f46df72c0844319467b345f1e0223607159d77ecd244eccfa878"
}