1
0
mirror of synced 2024-12-24 13:34:50 +01:00
ImHex/plugins/builtin/romfs/themes/dark.json

340 lines
11 KiB
JSON
Raw Normal View History

{
"base": "Dark",
"colors": {
"imgui": {
"border": "#6D6D7F7F",
"border-shadow": "#00000000",
"button": "#4296F966",
"button-active": "#0F87F9FF",
"button-hovered": "#4296F9FF",
"check-mark": "#4296F9FF",
"child-background": "#00000000",
"docking-empty-background": "#0F0F0FEF",
"docking-preview": "#4296F9B2",
"drag-drop-target": "#FFFF00E5",
"frame-background": "#28497A89",
"frame-background-active": "#4296F9AA",
"frame-background-hovered": "#4296F966",
"header": "#4296F94F",
"header-active": "#4296F9FF",
"header-hovered": "#4296F9CC",
"menu-bar-background": "#232323FF",
"modal-window-dim-background": "#CCCCCC59",
"nav-highlight": "#4296F9FF",
"nav-windowing-background": "#CCCCCC33",
"nav-windowing-highlight": "#FFFFFFB2",
"plot-histogram": "#E5B200FF",
"plot-histogram-hovered": "#FF9900FF",
"plot-lines": "#9B9B9BFF",
"plot-lines-hovered": "#FF6D59FF",
2023-10-30 23:14:22 +01:00
"popup-background": "#141414FF",
"resize-grip": "#4296F933",
"resize-grip-active": "#4296F9F2",
"resize-grip-hovered": "#4296F9AA",
"scrollbar-background": "#05050587",
"scrollbar-grab": "#4F4F4FFF",
"scrollbar-grab-active": "#828282FF",
"scrollbar-grab-hovered": "#686868FF",
"separator": "#6D6D7F7F",
"separator-active": "#1966BFFF",
"separator-hovered": "#1966BFC6",
"slider-grab": "#3D84E0FF",
"slider-grab-active": "#4296F9FF",
"tab": "#2D5993DB",
"tab-active": "#3268ADFF",
"tab-hovered": "#4296F9CC",
"tab-unfocused": "#111A25F7",
"tab-unfocused-active": "#22426CFF",
"table-border-light": "#3A3A3FFF",
"table-border-strong": "#4F4F59FF",
"table-header-background": "#303033FF",
"table-row-background": "#00000000",
"table-row-background-alt": "#FFFFFF0F",
"text": "#FFFFFFFF",
"text-disabled": "#7F7F7FFF",
"text-selected-background": "#4296F959",
"title-background": "#232323FF",
"title-background-active": "#232323FF",
"title-background-collapse": "#232323FF",
"window-background": "#0F0F0FFF",
"window-shadow": "#000000FF"
},
"imhex": {
"blur-background": "#00000000",
"desc-button": "#141414FF",
"desc-button-active": "#3C3C3CFF",
"desc-button-hovered": "#282828FF",
"highlight": "#4DC69BFF",
feat: Greatly improved the IEEE754 tool (#1047) I just realized one feature request existed about this tool and have added a comment to it referring this pr. Errors and additions are described in the fork commit already. I'm not sure if I should repeat them here again. I have tested the changes thoroughly, but it is always possible some fringe case was not tested and is incorrect. The tests were done using the many similar online calculators for IEEE 754 floating point formats. IEEE 745 floating point tool redesign modeled after 'float toy' web app (http://evanw.github.io/float-toy/) Streamlined output using colors and compact layout which can be further simplified. Chosen display mode (detailed or simplified) is automatically saved and set on new sessions. Edit the binary bits, the integer hexadecimal or the floating point decimal values and the entire app will update with the change. Supports the main IEEE745 standard formats (half, single and double precision) together with custom formats of size <= 64 bits. Each format choice uses and displays the number of significant decimal digits defined by the mantissa size. Added labels to identify the location of each bit box inside the binary representation. Satisfies round trip / idempotent (reproducing) conversion property Added theme colors, radio buttons for display mode and a clear button that resets the tool. Removed previously and incorrectly added locale translation to various labels and languages Attempted to adhere to code style formatting using existing code as example. An effort was made to use preferred variable types and functions from std namespace when appropriate. Attempted to document code using comments. Not implemented / left to complete at an later time Arbitrary width and precision formats. Extended precision formats. Shortest string property. hexadecimal floating point display and conversions.
2023-05-19 21:18:38 +02:00
"IEEE-tool-sign": "#5D5D7FFF",
"IEEE-tool-exp": "#5D7F5DFF",
"IEEE-tool-mantissa": "#7F5D5DFF",
"toolbar-blue": "#06539BFF",
"toolbar-brown": "#DBB377FF",
"toolbar-gray": "#E6E6E6FF",
"toolbar-green": "#388B42FF",
"toolbar-purple": "#672A78FF",
"toolbar-red": "#E74C3CFF",
"toolbar-yellow": "#F1C40FFF",
"logger-debug": "#388B42FF",
"logger-info": "#06539BFF",
"logger-warning": "#F1C40FFF",
"logger-error": "#E74C3CFF",
"logger-fatal": "#672A78FF",
"achievement-unlocked": "#F1C40FFF",
"find-highlight": "#672A78FF",
"diff-added": "#388B42FF",
"diff-removed": "#E74C3CFF",
"diff-changed": "#F1C40FFF",
"advanced-encoding-ascii": "#06539BFF",
"advanced-encoding-single": "#E74C3CFF",
"advanced-encoding-multi": "#F1C40FFF",
"advanced-encoding-unknown": "#E74C3CFF",
"patches": "#E74C3CFF",
"pattern-selected": "#3683CBFF"
},
"imnodes": {
2023-01-03 13:14:23 +01:00
"box-selector": "#3D85E01E",
"box-selector-outline": "#3D85E096",
"grid-background": "#282832C8",
"grid-line": "#C8C8C828",
"grid-line-primary": "#F0F0F03C",
"link": "#3D85E0C8",
"link-hovered": "#4296FAFF",
"link-selected": "#4296FAFF",
"mini-map-background": "#19191996",
"mini-map-background-hovered": "#191919C8",
"mini-map-canvas": "#C8C8C819",
"mini-map-canvas-outline": "#C8C8C8C8",
"mini-map-link": "#3D85E0C8",
"mini-map-link-selected": "#4296FAFF",
"mini-map-node-background": "#C8C8C864",
"mini-map-node-background-hovered": "#C8C8C8FF",
"mini-map-node-background-selected": "#C8C8C8FF",
"mini-map-node-outline": "#C8C8C864",
"mini-map-outline": "#96969664",
"mini-map-outline-hovered": "#969696C8",
"node-background": "#323232FF",
"node-background-hovered": "#4B4B4BFF",
"node-background-selected": "#4B4B4BFF",
"node-outline": "#646464FF",
"pin": "#F5CB25FF",
"pin-hovered": "#FA8335FF",
2023-01-03 13:14:23 +01:00
"title-bar": "#294A7AFF",
"title-bar-hovered": "#4296FAFF",
"title-bar-selected": "#4296FAFF"
},
"implot": {
2023-02-17 10:02:43 +01:00
"axis-bg": "auto",
"axis-bg-active": "auto",
"axis-bg-hovered": "auto",
"axis-grid": "#FFFFFF3F",
"axis-text": "#FFFFFFFF",
2023-02-17 10:02:43 +01:00
"axis-tick": "auto",
"crosshairs": "#FFFFFF7F",
2023-02-17 10:02:43 +01:00
"error-bar": "auto",
"fill": "auto",
"frame-bg": "#FFFFFF11",
"inlay-text": "#FFFFFFFF",
"legend-bg": "#141414EF",
"legend-border": "#6D6D7F7F",
"legend-text": "#FFFFFFFF",
2023-02-17 10:02:43 +01:00
"line": "auto",
"marker-fill": "auto",
"marker-outline": "auto",
"plot-bg": "#0000007F",
"plot-border": "#6D6D7F7F",
"selection": "#FF9900FF",
"title-text": "#FFFFFFFF"
},
"text-editor": {
"background": "#101010FF",
"breakpoint": "#FF200040",
"char-literal": "#E0A070FF",
"comment": "#206020FF",
"current-line-edge": "#A0A0A040",
"current-line-fill": "#00000040",
"current-line-fill-inactive": "#80808040",
"cursor": "#E0E0E0FF",
"default": "#7F7F7FFF",
"error-marker": "#FF200080",
"identifier": "#AAAAAAFF",
"keyword": "#569CD6FF",
"known-identifier": "#4DC69BFF",
"line-number": "#007070FF",
"multi-line-comment": "#206040FF",
"number": "#00FF00FF",
"preproc-identifier": "#A040C0FF",
"preprocessor": "#808040FF",
"punctuation": "#FFFFFFFF",
"selection": "#2060A080",
"string": "#E07070FF"
}
},
2023-07-04 08:42:33 +02:00
"image_theme": "dark",
"name": "Dark",
"styles": {
"imgui": {
"alpha": 1.0,
"button-text-align": [
0.5,
0.5
],
"cell-padding": [
4.0,
2.0
],
"child-border-size": 1.0,
"child-rounding": 0.0,
"disabled-alpha": 0.6,
"frame-border-size": 0.0,
"frame-padding": [
4.0,
3.0
],
"frame-rounding": 0.0,
"grab-min-size": 12.0,
"grab-rounding": 0.0,
"indent-spacing": 10.0,
"item-inner-spacing": [
4.0,
4.0
],
"item-spacing": [
8.0,
4.0
],
"popup-border-size": 1.0,
"popup-rounding": 0.0,
"scrollbar-rounding": 9.0,
"scrollbar-size": 14.0,
"selectable-text-align": [
0.0,
0.0
],
"tab-rounding": 4.0,
"window-border-size": 1.0,
"window-min-size": [
32.0,
32.0
],
"window-padding": [
8.0,
8.0
],
"window-rounding": 0.0,
"window-title-align": [
0.0,
0.5
],
"window-shadow-size": 64.0,
"window-shadow-offset": 0.0,
"window-shadow-angle": 0.0
},
"imnodes": {
"grid-spacing": 24.0,
"link-hover-distance": 10.0,
"link-line-segments-per-length": 0.1,
"link-thickness": 3.0,
"mini-map-offset": [
4.0,
4.0
],
"mini-map-padding": [
8.0,
8.0
],
"node-border-thickness": 1.0,
"node-corner-rounding": 4.0,
"node-padding": [
8.0,
8.0
],
"pin-circle-radius": 4.0,
"pin-hover-radius": 10.0,
"pin-line-thickness": 1.0,
"pin-offset": 0.0,
"pin-quad-side-length": 7.0,
"pin-triangle-side-length": 9.5
},
"implot": {
"annotation-padding": [
2.0,
2.0
],
"digital-bit-gap": 4.0,
"digital-bit-height": 8.0,
"error-bar-size": 5.0,
"error-bar-weight": 1.5,
"fill-alpha": 1.0,
"fit-padding": [
0.0,
0.0
],
"label-padding": [
5.0,
5.0
],
"legend-inner-padding": [
5.0,
5.0
],
"legend-padding": [
10.0,
10.0
],
"legend-spacing": [
5.0,
0.0
],
"line-weight": 1.0,
"major-grid-size": [
1.0,
1.0
],
"major-tick-len": [
10.0,
10.0
],
"major-tick-size": [
1.0,
1.0
],
"marker-size": 4.0,
"marker-weight": 1.0,
"minor-alpha": 0.25,
"minor-grid-size": [
1.0,
1.0
],
"minor-tick-len": [
5.0,
5.0
],
"minor-tick-size": [
1.0,
1.0
],
"mouse-pos-padding": [
10.0,
10.0
],
"plot-border-size": 1.0,
"plot-default-size": [
400.0,
300.0
],
"plot-min-size": [
200.0,
150.0
],
"plot-padding": [
10.0,
10.0
]
},
"imhex": {
impr: Convert all hex editor popups to floating, movable windows (#1658) ### Problem description In previous versions of ImHex, all tool windows were implemented as static popups fixed in the upper left position of the hex view. This PR refactors all tool popups to use floating windows that can be dragged around by the user, or closed with a dedicated close button on the title bar. These popup also support a stylable transparency when the user is not hovering their mouse over the window. ### Implementation description I rewrote the logic in `ViewHexEditor::drawPopup()` to use a custom `ImGuiExt::BeginHoveringPopup` function for rendering the popup windows. This new function is an almost exact replica of the built-in `ImGui::BeginPopupModal`, except it does also displays the default window title bar with a close button. A second custom function, `ImGuiExt::PopupTitleBarButton` was also added for rendering small icon-based buttons into the title bar of the parent popup window. This new function was used to implement an optional "Pinning" feature that individual popup implementations can specify. If a window is pinned, it won't close automatically when its main action is executed. For example, the "Select" button on the Select dialog will close the popup by default, unless the window is pinned. ### Screenshots Popup dialogs before: ![image](https://github.com/WerWolv/ImHex/assets/45818400/7c253181-8284-4076-a066-089403554f0f) Popup dialogs after: https://github.com/WerWolv/ImHex/assets/45818400/99d1a628-8ac1-40ac-9146-9062091bb0db ### Additional things - When the user stops hovering their mouse over a popup window, it becomes semi-transparent, making it easier to see the content behind it - This PR also introduces the `styles.imhex.popup-alpha` style, making the transparency effect configurable, including the ability to disable the effect completely by setting `popup-alpha` to `1.0`. - Fixed a bug that caused some popup windows to ignore the Enter and the KeypadEnter keys. With this PR, all tool windows will execute their main action when the user presses either one of the two Enter keys, and will also close automatically unless the window is pinned. ### Possible changes and improvements - Should the transparency effect be disabled if a window is pinned? - Should the transparency factor be modifiable on the Settings/Interface page? - A keyboard shortcut could be added for quickly pinning / unpinning the current window. - Can the pin icon stay on the left, or should it be moved next to the close button, with a similar circular background? --------- Co-authored-by: WerWolv <werwolv98@gmail.com>
2024-05-10 21:21:19 +02:00
"window-blur": 0.0,
"popup-alpha": 0.65
}
}
}