icon for chat got new style

pull/5371/head
lianahus 2 weeks ago
parent 8bce86f2de
commit a36d473a88
  1. 2
      apps/remix-ide/src/app/components/popup-panel.tsx
  2. 1
      apps/remix-ide/src/assets/css/themes/bootstrap-cerulean.min.css
  3. 1
      apps/remix-ide/src/assets/css/themes/bootstrap-cyborg.min.css
  4. 1
      apps/remix-ide/src/assets/css/themes/bootstrap-flatly.min.css
  5. 1
      apps/remix-ide/src/assets/css/themes/bootstrap-spacelab.min.css
  6. 1
      apps/remix-ide/src/assets/css/themes/remix-black_undtds.css
  7. 1
      apps/remix-ide/src/assets/css/themes/remix-candy_ikhg4m.css
  8. 1
      apps/remix-ide/src/assets/css/themes/remix-dark_tvx1s2.css
  9. 2
      apps/remix-ide/src/assets/css/themes/remix-hacker_owl.css
  10. 1
      apps/remix-ide/src/assets/css/themes/remix-light_powaqg.css
  11. 1
      apps/remix-ide/src/assets/css/themes/remix-midcentury_hrzph3.css
  12. 1
      apps/remix-ide/src/assets/css/themes/remix-unicorn.css
  13. 1
      apps/remix-ide/src/assets/css/themes/remix-violet.css
  14. 3
      libs/remix-ui/helper/src/lib/components/custom-tooltip.tsx
  15. 1
      libs/remix-ui/helper/src/types/customtooltip.ts
  16. 2
      libs/remix-ui/home-tab/src/lib/components/homeTabGetStarted.tsx
  17. 31
      libs/remix-ui/statusbar/src/lib/components/aiStatus.tsx
  18. 2
      libs/remix-ui/tabs/src/lib/remix-ui-tabs.tsx

@ -95,7 +95,7 @@ export class PopupPanel extends AbstractPanel {
height: '40rem', height: '40rem',
position: 'fixed', position: 'fixed',
bottom: '2rem', bottom: '2rem',
right: '3.5rem', right: '1.5rem',
zIndex: 200, zIndex: 200,
boxShadow: "0 1px 7px var(--secondary)" boxShadow: "0 1px 7px var(--secondary)"
}} }}

@ -36,6 +36,7 @@
--body-bg: #fff; --body-bg: #fff;
--text-bg-mark: #fcf8e3; --text-bg-mark: #fcf8e3;
--custom-select: #fff; --custom-select: #fff;
--brand-dark-blue: #222496;
--breakpoint-xs:0; --breakpoint-xs:0;
--breakpoint-sm:576px; --breakpoint-sm:576px;
--breakpoint-md:768px; --breakpoint-md:768px;

@ -37,6 +37,7 @@
--body-bg: #060606; --body-bg: #060606;
--text-bg-mark: #fcf8e3; --text-bg-mark: #fcf8e3;
--custom-select: #fff; --custom-select: #fff;
--brand-dark-blue: #222496;
--breakpoint-xs:0; --breakpoint-xs:0;
--breakpoint-sm:576px; --breakpoint-sm:576px;
--breakpoint-md:768px; --breakpoint-md:768px;

@ -36,6 +36,7 @@
--body-bg: #fff; --body-bg: #fff;
--text-bg-mark: #fcf8e3; --text-bg-mark: #fcf8e3;
--custom-select: #fff; --custom-select: #fff;
--brand-dark-blue: #222496;
--breakpoint-xs:0; --breakpoint-xs:0;
--breakpoint-sm:576px; --breakpoint-sm:576px;
--breakpoint-md:768px; --breakpoint-md:768px;

@ -39,6 +39,7 @@
--body-bg:#fff; --body-bg:#fff;
--text-bg-mark: #fcf8e3; --text-bg-mark: #fcf8e3;
--custom-select: #fff; --custom-select: #fff;
--brand-dark-blue: #222496;
--breakpoint-xs:0; --breakpoint-xs:0;
--breakpoint-sm:576px; --breakpoint-sm:576px;
--breakpoint-md:768px; --breakpoint-md:768px;

@ -25,6 +25,7 @@
--text: #babbcc; --text: #babbcc;
--body-bg: #1a1a1a; --body-bg: #1a1a1a;
--custom-select: #252525; --custom-select: #252525;
--brand-dark-blue: #222496;
--text-bg-mark: #a5a5a5; --text-bg-mark: #a5a5a5;
--breakpoint-xs: 0; --breakpoint-xs: 0;
--breakpoint-sm: 576px; --breakpoint-sm: 576px;

@ -25,6 +25,7 @@
--body-bg: #d5efff; --body-bg: #d5efff;
--text-bg-mark: #fcf8e3; --text-bg-mark: #fcf8e3;
--custom-select: #ffffff; --custom-select: #ffffff;
--brand-dark-blue: #222496;
--breakpoint-xs: 0; --breakpoint-xs: 0;
--breakpoint-sm: 576px; --breakpoint-sm: 576px;
--breakpoint-md: 768px; --breakpoint-md: 768px;

@ -25,6 +25,7 @@
--text-background: #222336; --text-background: #222336;
--text-bg-mark: #8388b2; --text-bg-mark: #8388b2;
--custom-select: #35384c; --custom-select: #35384c;
--brand-dark-blue: #222496;
--runtab: #8A93B0; --runtab: #8A93B0;
--body-bg: #222336; --body-bg: #222336;
--breakpoint-xs: 0; --breakpoint-xs: 0;

@ -27,7 +27,7 @@
--body-bg: #011628; --body-bg: #011628;
--custom-select: #252525; --custom-select: #252525;
--text-bg-mark: #a5a5a5; --text-bg-mark: #a5a5a5;
--custom-select: #011627; --brand-dark-blue: #222496;
--text-background: #011626; --text-background: #011626;
--breakpoint-xs: 0; --breakpoint-xs: 0;
--breakpoint-sm: 576px; --breakpoint-sm: 576px;

@ -25,6 +25,7 @@
--body-bg: #eef1f6; --body-bg: #eef1f6;
--text-bg-mark: #fcf8e3; --text-bg-mark: #fcf8e3;
--custom-select: #fff; --custom-select: #fff;
--brand-dark-blue: #222496;
--breakpoint-xs: 0; --breakpoint-xs: 0;
--breakpoint-sm: 576px; --breakpoint-sm: 576px;
--breakpoint-md: 768px; --breakpoint-md: 768px;

@ -25,6 +25,7 @@
--body-bg: #DBE2E0; --body-bg: #DBE2E0;
--text-bg-mark: #fcf8e3; --text-bg-mark: #fcf8e3;
--custom-select: #eeede9; --custom-select: #eeede9;
--brand-dark-blue: #222496;
--breakpoint-xs: 0; --breakpoint-xs: 0;
--breakpoint-sm: 576px; --breakpoint-sm: 576px;
--breakpoint-md: 768px; --breakpoint-md: 768px;

@ -25,6 +25,7 @@
--body-bg: #f1eef6; --body-bg: #f1eef6;
--text-bg-mark: #fcf8e3; --text-bg-mark: #fcf8e3;
--custom-select: #fff; --custom-select: #fff;
--brand-dark-blue: #222496;
--breakpoint-xs: 0; --breakpoint-xs: 0;
--breakpoint-sm: 576px; --breakpoint-sm: 576px;
--breakpoint-md: 768px; --breakpoint-md: 768px;

@ -25,6 +25,7 @@
--body-bg: #f1eef6; --body-bg: #f1eef6;
--text-bg-mark: #fcf8e3; --text-bg-mark: #fcf8e3;
--custom-select: #fff; --custom-select: #fff;
--brand-dark-blue: #222496;
--breakpoint-xs: 0; --breakpoint-xs: 0;
--breakpoint-sm: 576px; --breakpoint-sm: 576px;
--breakpoint-md: 768px; --breakpoint-md: 768px;

@ -4,7 +4,7 @@ import { Fragment } from 'react'
import { OverlayTrigger, Popover, Tooltip } from 'react-bootstrap' import { OverlayTrigger, Popover, Tooltip } from 'react-bootstrap'
import { CustomTooltipType } from '../../types/customtooltip' import { CustomTooltipType } from '../../types/customtooltip'
export function CustomTooltip({ children, placement, tooltipId, tooltipClasses, tooltipText, tooltipTextClasses, delay, hide }: CustomTooltipType) { export function CustomTooltip({ children, placement, tooltipId, tooltipClasses, tooltipText, tooltipTextClasses, delay, hide, show }: CustomTooltipType) {
if (typeof tooltipText !== 'string') { if (typeof tooltipText !== 'string') {
const newTooltipText = React.cloneElement(tooltipText, { const newTooltipText = React.cloneElement(tooltipText, {
className: ' bg-secondary text-wrap p-1 px-2 ' className: ' bg-secondary text-wrap p-1 px-2 '
@ -16,6 +16,7 @@ export function CustomTooltip({ children, placement, tooltipId, tooltipClasses,
(!hide ? ( (!hide ? (
<Fragment> <Fragment>
<OverlayTrigger <OverlayTrigger
show={show}
placement={placement} placement={placement}
overlay={ overlay={
<Popover id={`popover-positioned-${placement}`}> <Popover id={`popover-positioned-${placement}`}>

@ -10,4 +10,5 @@ export type CustomTooltipType = {
tooltipTextClasses?: string tooltipTextClasses?: string
delay?: OverlayDelay delay?: OverlayDelay
hide?: boolean hide?: boolean
show?: boolean
} }

@ -171,7 +171,7 @@ function HomeTabGetStarted({ plugin }: HomeTabGetStartedProps) {
<button <button
key={index} key={index}
className={index === 0 ? className={index === 0 ?
'btn btn-primary border p-2 text-nowrap mr-3 mb-2' : 'btn btn-primary border p-2 text-nowrap mr-3 mb-3' :
index === workspaceTemplates.length - 1 ? index === workspaceTemplates.length - 1 ?
'btn border p-2 text-nowrap mr-2 mb-3' : 'btn border p-2 text-nowrap mr-2 mb-3' :
'btn border p-2 text-nowrap mr-3 mb-3' 'btn border p-2 text-nowrap mr-3 mb-3'

@ -49,24 +49,33 @@ export default function AIStatus(props: AIStatusProps) {
{copilotActive === false ? 'RemixAI Copilot (disabled)' : 'RemixAI Copilot (enabled)'} {copilotActive === false ? 'RemixAI Copilot (disabled)' : 'RemixAI Copilot (enabled)'}
</span> </span>
</CustomTooltip> </CustomTooltip>
<CustomTooltip
tooltipText={"Ask RemixAI for help!"}
>
<div className="d-flex text-sm flex-row pr-2 text-white justify-content-center align-items-center"> <div className="d-flex text-sm flex-row pr-2 text-white justify-content-center align-items-center">
<style>{` <style>{`
button.fa-robot:focus { button.aiButton:focus {
outline: none; outline: none;
box-shadow: none; box-shadow: none;
} }
button.fa-robot:hover { button.aiButton:hover {
border-color: var(--info) border-color: var(--info)
} }
`}</style> `}</style>
{ !appContext.appState.showPopupPanel && <div className='d-flex flex-column' style={{
position: 'absolute',
bottom: '1.5rem',
right: '1.5rem',
color: 'var(--ai)',
alignItems: 'self-end',
}}>
<span className='p-1 bg-info mr-4' style={{
boxShadow: "0 1px 7px var(--secondary)",
zIndex: '200',
marginBottom: '-7px'
}}>
👋 I'm here to help you!
</span>
<button <button
style={{ style={{
position: 'absolute', backgroundColor: 'var(--brand-dark-blue)',
bottom: '0.7rem',
right: '0.1rem',
height: '3rem', height: '3rem',
width: '3rem', width: '3rem',
borderRadius: '50%', borderRadius: '50%',
@ -74,7 +83,7 @@ export default function AIStatus(props: AIStatusProps) {
boxShadow: "0 1px 7px var(--secondary)" boxShadow: "0 1px 7px var(--secondary)"
}} }}
data-id="aiStatusButton" data-id="aiStatusButton"
className='h3 p-1 alert alert-info fal fa-robot' className='aiButton d-flex align-items-center h3 p-1'
onClick={async () => { onClick={async () => {
appContext.appStateDispatch({ appContext.appStateDispatch({
type: appActionTypes.setShowPopupPanel, type: appActionTypes.setShowPopupPanel,
@ -82,9 +91,11 @@ export default function AIStatus(props: AIStatusProps) {
}) })
}} }}
> >
<img className="align-self-start" src="assets/img/aiLogoHead.webp" alt="" style={{height: "2rem"}}></img>
</button> </button>
</div> </div>
</CustomTooltip> }
</div>
</div> </div>
) )
} }

@ -279,7 +279,7 @@ export const TabsUI = (props: TabsUIProps) => {
methods: ['code_generation', 'code_completion', methods: ['code_generation', 'code_completion',
"solidity_answer", "code_explaining", "solidity_answer", "code_explaining",
"code_insertion", "error_explaining", "code_insertion", "error_explaining",
"initialize", 'chatPipe', 'ProcessChatRequestBuffer', 'isChatRequestPending', 'toggle'], "initialize", 'chatPipe', 'ProcessChatRequestBuffer', 'isChatRequestPending'],
events: [], events: [],
icon: 'assets/img/remix-logo-blue.png', icon: 'assets/img/remix-logo-blue.png',
description: 'RemixAI provides AI services to Remix IDE.', description: 'RemixAI provides AI services to Remix IDE.',

Loading…
Cancel
Save