mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-27 17:31:36 -06:00
a084735ce5
* ELECTRON-771 - Fix custom title bar button titles * ELECTRON-771 - Update unit test cases
128 lines
2.4 KiB
Plaintext
128 lines
2.4 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`windows title bar should render correctly 1`] = `
|
|
<div
|
|
id="title-bar"
|
|
onDoubleClick={[Function]}
|
|
style={
|
|
Object {
|
|
"display": "flex",
|
|
}
|
|
}
|
|
>
|
|
<div
|
|
className="title-bar-button-container"
|
|
>
|
|
<button
|
|
className="hamburger-menu-button"
|
|
onClick={[Function]}
|
|
onMouseDown={[Function]}
|
|
title="Menu"
|
|
>
|
|
<svg
|
|
viewBox="0 0 15 10"
|
|
x="0px"
|
|
y="0px"
|
|
>
|
|
<rect
|
|
fill="rgba(255, 255, 255, 0.9)"
|
|
height="1"
|
|
width="15"
|
|
/>
|
|
<rect
|
|
fill="rgba(255, 255, 255, 0.9)"
|
|
height="1"
|
|
width="15"
|
|
y="4"
|
|
/>
|
|
<rect
|
|
fill="rgba(255, 255, 255, 0.9)"
|
|
height="1"
|
|
width="152"
|
|
y="8"
|
|
/>
|
|
</svg>
|
|
</button>
|
|
</div>
|
|
<div
|
|
className="title-container"
|
|
>
|
|
<img
|
|
className="symphony-logo"
|
|
/>
|
|
<p
|
|
className="title-bar-title"
|
|
>
|
|
Symphony
|
|
</p>
|
|
</div>
|
|
<div
|
|
className="title-bar-button-container"
|
|
>
|
|
<button
|
|
className="title-bar-button"
|
|
onClick={[Function]}
|
|
onMouseDown={[Function]}
|
|
title="Minimize"
|
|
>
|
|
<svg
|
|
viewBox="0 0 14 1"
|
|
x="0px"
|
|
y="0px"
|
|
>
|
|
<rect
|
|
fill="rgba(255, 255, 255, 0.9)"
|
|
height="0.6"
|
|
width="14"
|
|
/>
|
|
</svg>
|
|
</button>
|
|
</div>
|
|
<div
|
|
className="title-bar-button-container"
|
|
>
|
|
<button
|
|
className="title-bar-button"
|
|
onClick={[Function]}
|
|
onMouseDown={[Function]}
|
|
title="Maximize"
|
|
>
|
|
<svg
|
|
viewBox="0 0 14 10.2"
|
|
x="0px"
|
|
y="0px"
|
|
>
|
|
<path
|
|
d="M0,0v10.1h10.2V0H0z M9.2,9.2H1.1V1h8.1V9.2z"
|
|
fill="rgba(255, 255, 255, 0.9)"
|
|
/>
|
|
</svg>
|
|
</button>
|
|
</div>
|
|
<div
|
|
className="title-bar-button-container"
|
|
>
|
|
<button
|
|
className="title-bar-button"
|
|
onClick={[Function]}
|
|
onMouseDown={[Function]}
|
|
title="Close"
|
|
>
|
|
<svg
|
|
viewBox="0 0 14 10.2"
|
|
x="0px"
|
|
y="0px"
|
|
>
|
|
<polygon
|
|
fill="rgba(255, 255, 255, 0.9)"
|
|
points="10.2,0.7 9.5,0 5.1,4.4 0.7,0 0,0.7 4.4,5.1 0,9.5 0.7,10.2 5.1,5.8 9.5,10.2 10.2,9.5 5.8,5.1 "
|
|
/>
|
|
</svg>
|
|
</button>
|
|
</div>
|
|
<div
|
|
className="branding-logo"
|
|
/>
|
|
</div>
|
|
`;
|