antigravity-rtl-patcher 3.0.6 → 3.0.7
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/package.json
CHANGED
|
Binary file
|
package/payload/utils-inject.js
CHANGED
|
@@ -97,26 +97,25 @@ win.webContents.on('dom-ready', () => {
|
|
|
97
97
|
}, 500);
|
|
98
98
|
|
|
99
99
|
const CSS = \`
|
|
100
|
-
/*
|
|
101
|
-
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');
|
|
102
|
-
|
|
103
|
-
/* Apply Vazirmatn to all text when RTL is active */
|
|
100
|
+
/* Persian/Arabic Font Stack */
|
|
104
101
|
body.rtl-active {
|
|
105
|
-
font-family: '
|
|
102
|
+
font-family: 'Segoe UI', Tahoma, Arial, 'Helvetica Neue', sans-serif !important;
|
|
103
|
+
font-feature-settings: 'liga' 1, 'calt' 1 !important;
|
|
104
|
+
text-rendering: optimizeLegibility !important;
|
|
105
|
+
-webkit-font-smoothing: antialiased !important;
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
/* RTL Styles - Only for message content */
|
|
109
109
|
body.rtl-active [dir="rtl"] {
|
|
110
110
|
direction: rtl !important;
|
|
111
111
|
text-align: right !important;
|
|
112
|
-
unicode-bidi: isolate !important;
|
|
113
112
|
}
|
|
114
113
|
|
|
115
114
|
/* Keep paragraphs and headings with proper bidi */
|
|
116
115
|
body.rtl-active p,
|
|
117
116
|
body.rtl-active h1, body.rtl-active h2, body.rtl-active h3,
|
|
118
117
|
body.rtl-active h4, body.rtl-active h5, body.rtl-active h6 {
|
|
119
|
-
|
|
118
|
+
direction: inherit !important;
|
|
120
119
|
text-align: start !important;
|
|
121
120
|
}
|
|
122
121
|
|
|
@@ -134,7 +133,6 @@ win.webContents.on('dom-ready', () => {
|
|
|
134
133
|
body.rtl-active code * {
|
|
135
134
|
direction: ltr !important;
|
|
136
135
|
text-align: left !important;
|
|
137
|
-
unicode-bidi: isolate !important;
|
|
138
136
|
font-family: 'Courier New', Consolas, Monaco, monospace !important;
|
|
139
137
|
}
|
|
140
138
|
|