@buoy-gg/images 7.0.25 → 7.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/components/ImageDetail.js +16 -16
- package/lib/commonjs/components/ImageDetail.js.map +1 -1
- package/lib/commonjs/components/ImageDetailFooter.js +17 -16
- package/lib/commonjs/components/ImageDetailFooter.js.map +1 -1
- package/lib/commonjs/components/ImageRow.js +8 -8
- package/lib/commonjs/components/ImageRow.js.map +1 -1
- package/lib/commonjs/components/ImagesListFooter.js +15 -14
- package/lib/commonjs/components/ImagesListFooter.js.map +1 -1
- package/lib/commonjs/components/ImagesModal.js +7 -5
- package/lib/commonjs/components/ImagesModal.js.map +1 -1
- package/lib/commonjs/components/InsightsBar.js +3 -3
- package/lib/commonjs/components/InsightsBar.js.map +1 -1
- package/lib/commonjs/format.js +3 -3
- package/lib/commonjs/format.js.map +1 -1
- package/lib/module/components/ImageDetail.js +17 -17
- package/lib/module/components/ImageDetail.js.map +1 -1
- package/lib/module/components/ImageDetailFooter.js +18 -17
- package/lib/module/components/ImageDetailFooter.js.map +1 -1
- package/lib/module/components/ImageRow.js +9 -9
- package/lib/module/components/ImageRow.js.map +1 -1
- package/lib/module/components/ImagesListFooter.js +16 -15
- package/lib/module/components/ImagesListFooter.js.map +1 -1
- package/lib/module/components/ImagesModal.js +8 -6
- package/lib/module/components/ImagesModal.js.map +1 -1
- package/lib/module/components/InsightsBar.js +4 -4
- package/lib/module/components/InsightsBar.js.map +1 -1
- package/lib/module/format.js +4 -4
- package/lib/module/format.js.map +1 -1
- package/package.json +2 -2
- package/src/components/ImageDetail.tsx +17 -17
- package/src/components/ImageDetailFooter.tsx +18 -17
- package/src/components/ImageRow.tsx +9 -9
- package/src/components/ImagesListFooter.tsx +16 -15
- package/src/components/ImagesModal.tsx +8 -6
- package/src/components/InsightsBar.tsx +4 -4
- package/src/format.ts +4 -4
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import { useState, useSyncExternalStore } from "react";
|
|
9
9
|
import { StyleSheet, Text, TouchableOpacity, View } from "react-native";
|
|
10
|
-
import {
|
|
10
|
+
import { night, useSafeAreaInsets } from "@buoy-gg/shared-ui";
|
|
11
11
|
import { hardReloadAllMounted, subscribeActions } from "../capture/actions";
|
|
12
12
|
import {
|
|
13
13
|
clearAllOverrides,
|
|
@@ -127,19 +127,20 @@ const styles = StyleSheet.create({
|
|
|
127
127
|
footer: {
|
|
128
128
|
paddingHorizontal: 12,
|
|
129
129
|
paddingTop: 8,
|
|
130
|
-
|
|
130
|
+
// Dark glass over the star field — matches EventStepperFooter's night bar.
|
|
131
|
+
backgroundColor: "rgba(5, 5, 5, 0.92)",
|
|
131
132
|
borderTopWidth: 1,
|
|
132
|
-
borderTopColor:
|
|
133
|
+
borderTopColor: night.color.border,
|
|
133
134
|
gap: 8,
|
|
134
135
|
},
|
|
135
136
|
caption: {
|
|
136
|
-
color:
|
|
137
|
+
color: night.color.textTertiary,
|
|
137
138
|
fontSize: 9,
|
|
138
139
|
fontWeight: "700",
|
|
139
140
|
letterSpacing: 0.8,
|
|
140
141
|
},
|
|
141
142
|
message: {
|
|
142
|
-
color:
|
|
143
|
+
color: night.color.info,
|
|
143
144
|
fontSize: 10,
|
|
144
145
|
fontFamily: "monospace",
|
|
145
146
|
},
|
|
@@ -152,22 +153,22 @@ const styles = StyleSheet.create({
|
|
|
152
153
|
alignItems: "center",
|
|
153
154
|
paddingVertical: 8,
|
|
154
155
|
borderRadius: 6,
|
|
155
|
-
backgroundColor:
|
|
156
|
+
backgroundColor: night.color.button,
|
|
156
157
|
borderWidth: StyleSheet.hairlineWidth,
|
|
157
|
-
borderColor:
|
|
158
|
+
borderColor: night.color.border,
|
|
158
159
|
},
|
|
159
160
|
buttonText: {
|
|
160
161
|
fontSize: 10,
|
|
161
162
|
fontWeight: "600",
|
|
162
|
-
color:
|
|
163
|
+
color: night.color.textSecondary,
|
|
163
164
|
fontFamily: "monospace",
|
|
164
165
|
textTransform: "uppercase",
|
|
165
166
|
},
|
|
166
167
|
buttonTextAccent: {
|
|
167
|
-
color:
|
|
168
|
+
color: night.color.warning,
|
|
168
169
|
},
|
|
169
170
|
netLabel: {
|
|
170
|
-
color:
|
|
171
|
+
color: night.color.textTertiary,
|
|
171
172
|
fontSize: 9,
|
|
172
173
|
fontWeight: "700",
|
|
173
174
|
letterSpacing: 0.8,
|
|
@@ -179,15 +180,15 @@ const styles = StyleSheet.create({
|
|
|
179
180
|
alignItems: "center",
|
|
180
181
|
paddingVertical: 6,
|
|
181
182
|
borderRadius: 6,
|
|
182
|
-
backgroundColor:
|
|
183
|
+
backgroundColor: night.color.button,
|
|
183
184
|
borderWidth: StyleSheet.hairlineWidth,
|
|
184
|
-
borderColor:
|
|
185
|
+
borderColor: night.color.border,
|
|
185
186
|
},
|
|
186
187
|
netButtonActive: {
|
|
187
|
-
backgroundColor:
|
|
188
|
-
borderColor:
|
|
188
|
+
backgroundColor: night.color.accentSoft,
|
|
189
|
+
borderColor: night.color.accentBorderStrong,
|
|
189
190
|
},
|
|
190
191
|
netTextActive: {
|
|
191
|
-
color:
|
|
192
|
+
color: night.color.accent,
|
|
192
193
|
},
|
|
193
194
|
});
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import { useEffect, useState } from "react";
|
|
9
9
|
import { FlatList, StyleSheet, Text, View } from "react-native";
|
|
10
|
-
import { JsModal, macOSColors } from "@buoy-gg/shared-ui";
|
|
10
|
+
import { JsModal, macOSColors, night } from "@buoy-gg/shared-ui";
|
|
11
11
|
import type { ModalState } from "@buoy-gg/shared-ui";
|
|
12
12
|
import { getCaptureStatus, installImageCapture } from "../capture/install";
|
|
13
13
|
import { getGlobalModes } from "../capture/overrides";
|
|
@@ -218,7 +218,9 @@ const styles = StyleSheet.create({
|
|
|
218
218
|
inlineRoot: {
|
|
219
219
|
flex: 1,
|
|
220
220
|
minHeight: 0,
|
|
221
|
-
|
|
221
|
+
// Transparent so the desktop workbench's hoisted sky (one field spanning
|
|
222
|
+
// sidebar + panel) shows through — the shell paints its base beneath it.
|
|
223
|
+
backgroundColor: "transparent",
|
|
222
224
|
},
|
|
223
225
|
inlineHeader: {
|
|
224
226
|
paddingHorizontal: 12,
|
|
@@ -237,11 +239,11 @@ const styles = StyleSheet.create({
|
|
|
237
239
|
margin: 10,
|
|
238
240
|
padding: 10,
|
|
239
241
|
borderRadius: 8,
|
|
240
|
-
backgroundColor:
|
|
242
|
+
backgroundColor: night.color.warningSoft,
|
|
241
243
|
gap: 4,
|
|
242
244
|
},
|
|
243
245
|
noticeText: {
|
|
244
|
-
color:
|
|
246
|
+
color: night.color.warning,
|
|
245
247
|
fontSize: 11,
|
|
246
248
|
},
|
|
247
249
|
empty: {
|
|
@@ -250,12 +252,12 @@ const styles = StyleSheet.create({
|
|
|
250
252
|
gap: 8,
|
|
251
253
|
},
|
|
252
254
|
emptyTitle: {
|
|
253
|
-
color:
|
|
255
|
+
color: night.color.text,
|
|
254
256
|
fontSize: 13,
|
|
255
257
|
fontWeight: "600",
|
|
256
258
|
},
|
|
257
259
|
emptyText: {
|
|
258
|
-
color:
|
|
260
|
+
color: night.color.textSecondary,
|
|
259
261
|
fontSize: 11,
|
|
260
262
|
textAlign: "center",
|
|
261
263
|
lineHeight: 16,
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import { StyleSheet, Text, View } from "react-native";
|
|
11
|
-
import {
|
|
11
|
+
import { night } from "@buoy-gg/shared-ui";
|
|
12
12
|
import { insightChips } from "../store/insights";
|
|
13
13
|
import type { ImageInsights } from "../types";
|
|
14
14
|
|
|
@@ -34,16 +34,16 @@ const styles = StyleSheet.create({
|
|
|
34
34
|
paddingHorizontal: 10,
|
|
35
35
|
paddingVertical: 8,
|
|
36
36
|
borderBottomWidth: StyleSheet.hairlineWidth,
|
|
37
|
-
borderBottomColor:
|
|
37
|
+
borderBottomColor: night.color.border,
|
|
38
38
|
},
|
|
39
39
|
chip: {
|
|
40
|
-
backgroundColor:
|
|
40
|
+
backgroundColor: night.color.warningSoft,
|
|
41
41
|
borderRadius: 999,
|
|
42
42
|
paddingHorizontal: 10,
|
|
43
43
|
paddingVertical: 5,
|
|
44
44
|
},
|
|
45
45
|
chipText: {
|
|
46
|
-
color:
|
|
46
|
+
color: night.color.warning,
|
|
47
47
|
fontSize: 10,
|
|
48
48
|
fontWeight: "600",
|
|
49
49
|
lineHeight: 13,
|
package/src/format.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Formatting + verdict helpers shared by list rows and the detail view.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import { macOSColors } from "@buoy-gg/shared-ui";
|
|
5
|
+
import { macOSColors, night } from "@buoy-gg/shared-ui";
|
|
6
6
|
import { oversizeFactor } from "./store/imageEventStore";
|
|
7
7
|
import type { ImageRecord } from "./types";
|
|
8
8
|
|
|
@@ -43,7 +43,7 @@ export interface SizeVerdict {
|
|
|
43
43
|
*/
|
|
44
44
|
export function sizeVerdict(record: ImageRecord): SizeVerdict {
|
|
45
45
|
const factor = oversizeFactor(record);
|
|
46
|
-
if (factor == null) return { label: "", color:
|
|
46
|
+
if (factor == null) return { label: "", color: night.color.textTertiary, factor };
|
|
47
47
|
if (factor < 0.9) {
|
|
48
48
|
return { label: `${factor.toFixed(1)}× upscaled`, color: macOSColors.semantic.info, factor };
|
|
49
49
|
}
|
|
@@ -65,7 +65,7 @@ export function statusColor(record: ImageRecord): string {
|
|
|
65
65
|
case "loading":
|
|
66
66
|
return macOSColors.semantic.warning;
|
|
67
67
|
default:
|
|
68
|
-
return
|
|
68
|
+
return night.color.textTertiary;
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
|
|
@@ -81,5 +81,5 @@ export function cacheBadge(record: ImageRecord): { label: string; color: string
|
|
|
81
81
|
if (verdict === "none" || record.progressSeen) {
|
|
82
82
|
return { label: "NETWORK", color: macOSColors.semantic.error };
|
|
83
83
|
}
|
|
84
|
-
return { label: "?", color:
|
|
84
|
+
return { label: "?", color: night.color.textTertiary };
|
|
85
85
|
}
|