Skip to content

Commit

Permalink
3.21.6
Browse files Browse the repository at this point in the history
show white text for both dark and light theme in mini notification.
work session chart caused tooltip not working on corners
  • Loading branch information
MayGo committed Nov 10, 2021
1 parent 3581aee commit e32dd27
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 23 deletions.
54 changes: 33 additions & 21 deletions client/src/components/TrayLayout/OnlineChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,27 +141,39 @@ export const OnlineChart = ({ items }) => {
y={(datum) => datum.diff}
data={pieData}
/>
<Box position="absolute" top={0} mt={'63px'} left="50%" ml={`${-((width - 70) / 2)}px`} zIndex={10}>
<VictoryPie
theme={chartTheme}
padding={2}
width={width - 70}
height={width - 70}
innerRadius={innerWidth / 2 - 5}
containerComponent={<VictoryContainer responsive={false} />}
style={style}
y={(datum) => datum.diff}
labels={() => null}
data={[
{ x: 1, diff: sessionLine, color: 'transparent' },
// { x: 2, diff: sessionLineHighlight, color: onlineSinceLineColor },
{
x: 3,
diff: currentSession,
color: sessionIsOvertime ? overtimeColor : onlineSinceColor,
},
]}
/>
<Box
position="absolute"
top={0}
mt={'63px'}
left="50%"
ml={`${-((width - 70) / 2)}px`}
zIndex={10}
pointerEvents="none"
>
<svg style={{ pointerEvents: 'none' }} width={width - 70} height={width - 70}>
<VictoryPie
theme={chartTheme}
padding={2}
width={width - 70}
height={width - 70}
standalone={false}
innerRadius={innerWidth / 2 - 5}
containerComponent={
<VictoryContainer responsive={false} style={{ pointerEvents: 'none' }} />
}
style={style}
y={(datum) => datum.diff}
labels={() => null}
data={[
{ x: 1, diff: sessionLine, color: 'transparent' },
{
x: 3,
diff: currentSession,
color: sessionIsOvertime ? overtimeColor : onlineSinceColor,
},
]}
/>
</svg>
</Box>
</Box>

Expand Down
4 changes: 3 additions & 1 deletion client/src/routes/NotificationAppPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ const NotificationAppPageTemp = () => {
return (
<Box p={1} bg={'brand.mainColor'}>
<Center>
<Text fontSize="small">{currentSession && <ShortTimeInterval totalMs={currentSession} />}</Text>
<Text fontSize="small" color="white">
{currentSession && <ShortTimeInterval totalMs={currentSession} />}
</Text>
</Center>
</Box>
);
Expand Down
2 changes: 1 addition & 1 deletion electron/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tockler",
"version": "3.21.5",
"version": "3.21.6",
"description": "Automatically track applications usage and working time",
"author": "Maigo Erit <[email protected]>",
"license": "GPL-2.0",
Expand Down

0 comments on commit e32dd27

Please sign in to comment.